OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, location=None, metadata=None, project_name=None, version=None, py_version=PY_MAJOR, platform=None, precedence=EGG_DIST) |
def | from_location (cls, location, basename, metadata=None, **kw) |
def | hashcmp (self) |
def | __hash__ (self) |
def | __lt__ (self, other) |
def | __le__ (self, other) |
def | __gt__ (self, other) |
def | __ge__ (self, other) |
def | __eq__ (self, other) |
def | __ne__ (self, other) |
def | key (self) |
def | parsed_version (self) |
def | version (self) |
def | requires (self, extras=()) |
def | activate (self, path=None, replace=False) |
def | egg_name (self) |
def | __repr__ (self) |
def | __str__ (self) |
def | __getattr__ (self, attr) |
def | __dir__ (self) |
def | from_filename (cls, filename, metadata=None, **kw) |
def | as_requirement (self) |
def | load_entry_point (self, group, name) |
def | get_entry_map (self, group=None) |
def | get_entry_info (self, group, name) |
def | insert_on (self, path, loc=None, replace=False) |
def | check_version_conflict (self) |
def | has_version (self) |
def | clone (self, **kw) |
def | extras (self) |
Data Fields | |
project_name | |
py_version | |
platform | |
location | |
precedence | |
hashcmp | |
key | |
Static Public Attributes | |
PKG_INFO | |
Wrap an actual or potential sys.path entry w/metadata
def __init__ | ( | self, | |
location = None , |
|||
metadata = None , |
|||
project_name = None , |
|||
version = None , |
|||
py_version = PY_MAJOR , |
|||
platform = None , |
|||
precedence = EGG_DIST |
|||
) |
def __dir__ | ( | self | ) |
def __eq__ | ( | self, | |
other | |||
) |
def __ge__ | ( | self, | |
other | |||
) |
def __getattr__ | ( | self, | |
attr | |||
) |
Delegate all unrecognized public attributes to .metadata provider
def __gt__ | ( | self, | |
other | |||
) |
def __hash__ | ( | self | ) |
def __le__ | ( | self, | |
other | |||
) |
def __lt__ | ( | self, | |
other | |||
) |
def __ne__ | ( | self, | |
other | |||
) |
def __repr__ | ( | self | ) |
def __str__ | ( | self | ) |
def activate | ( | self, | |
path = None , |
|||
replace = False |
|||
) |
Ensure distribution is importable on `path` (default=sys.path)
def as_requirement | ( | self | ) |
Return a ``Requirement`` that matches this distribution exactly
def check_version_conflict | ( | self | ) |
def clone | ( | self, | |
** | kw | ||
) |
Copy this distribution, substituting in any changed keyword args
def egg_name | ( | self | ) |
Return what this distribution's standard .egg filename should be
def extras | ( | self | ) |
def from_filename | ( | cls, | |
filename, | |||
metadata = None , |
|||
** | kw | ||
) |
def from_location | ( | cls, | |
location, | |||
basename, | |||
metadata = None , |
|||
** | kw | ||
) |
def get_entry_info | ( | self, | |
group, | |||
name | |||
) |
Return the EntryPoint object for `group`+`name`, or ``None``
def get_entry_map | ( | self, | |
group = None |
|||
) |
Return the entry point map for `group`, or the full entry map
def has_version | ( | self | ) |
def hashcmp | ( | self | ) |
def insert_on | ( | self, | |
path, | |||
loc = None , |
|||
replace = False |
|||
) |
Ensure self.location is on path If replace=False (default): - If location is already in path anywhere, do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent. - Else: add to the end of path. If replace=True: - If location is already on path anywhere (not eggs) or higher priority than its parent (eggs) do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent, removing any lower-priority entries. - Else: add it to the front of path.
def key | ( | self | ) |
def load_entry_point | ( | self, | |
group, | |||
name | |||
) |
Return the `name` entry point of `group` or raise ImportError
def parsed_version | ( | self | ) |
def requires | ( | self, | |
extras = () |
|||
) |
List of Requirements needed for this distro if `extras` are used
def version | ( | self | ) |
hashcmp |
key |
location |
|
static |
platform |
precedence |
project_name |
py_version |