Logo Search packages:      
Sourcecode: distribute version File versions  Download package

pkg_resources::PathMetadata Class Reference

Inheritance diagram for pkg_resources::PathMetadata:

pkg_resources::DefaultProvider pkg_resources::EggProvider pkg_resources::NullProvider

List of all members.

Detailed Description

Metadata provider for egg directories


    # Development eggs:

    egg_info = "/path/to/PackageName.egg-info"
    base_dir = os.path.dirname(egg_info)
    metadata = PathMetadata(base_dir, egg_info)
    dist_name = os.path.splitext(os.path.basename(egg_info))[0]
    dist = Distribution(basedir,project_name=dist_name,metadata=metadata)

    # Unpacked egg directories:

    egg_path = "/path/to/PackageName-ver-pyver-etc.egg"
    metadata = PathMetadata(egg_path, os.path.join(egg_path,'EGG-INFO'))
    dist = Distribution.from_filename(egg_path, metadata=metadata)

Definition at line 1512 of file pkg_resources.py.

Public Member Functions

def __init__
def __init__
def get_metadata
def get_metadata
def get_metadata_lines
def get_resource_filename
def get_resource_stream
def get_resource_string
def has_metadata
def has_resource
def metadata_isdir
def metadata_listdir
def resource_isdir
def resource_listdir
def run_script

Public Attributes


Static Public Attributes

 loader = None

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index