Module contents
apipkg: control the exported namespace of a Python package.
see https://pypi.python.org/pypi/apipkg
holger krekel, 2009 - MIT license
-
AliasModule(modname: str, modpath: str, attrname: str | None = None) → ModuleType[source]
-
class ApiModule(name: str, importspec: dict[str, Any], implprefix: str | None = None, attr: dict[str, Any] | None = None)[source]
Bases: ModuleType
-
distribution_version(name: str) → str | None[source]
try to get the version of the named distribution,
returns None on failure
-
initpkg(pkgname: str, exportdefs: dict[str, Any], attr: dict[str, object] | None = None, eager: bool = False) → ApiModule[source]
initialize given package from the export definitions.