|
|
| __init__ (self, name, module_name, attrs=(), extras=(), dist=None) |
| |
|
| __str__ (self) |
| |
|
| __repr__ (self) |
| |
| | load (self, require=True, *args, **kwargs) |
| |
| | resolve (self) |
| |
|
| require (self, env=None, installer=None) |
| |
| | parse (cls, src, dist=None) |
| |
| | parse_group (cls, group, lines, dist=None) |
| |
| | parse_map (cls, data, dist=None) |
| |
|
|
| name |
| |
|
| module_name |
| |
|
| attrs |
| |
|
| extras |
| |
|
| dist |
| |
|
|
| _parse_extras (cls, extras_spec) |
| |
Object representing an advertised importable object
◆ load()
| pip._vendor.pkg_resources.EntryPoint.load |
( |
|
self, |
|
|
|
require = True, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Require packages for this EntryPoint, then resolve it.
◆ parse()
| pip._vendor.pkg_resources.EntryPoint.parse |
( |
|
cls, |
|
|
|
src, |
|
|
|
dist = None |
|
) |
| |
Parse a single entry point from string `src`
Entry point syntax follows the form::
name = some.module:some.attr [extra1, extra2]
The entry name and module name are required, but the ``:attrs`` and
``[extras]`` parts are optional
◆ parse_group()
| pip._vendor.pkg_resources.EntryPoint.parse_group |
( |
|
cls, |
|
|
|
group, |
|
|
|
lines, |
|
|
|
dist = None |
|
) |
| |
Parse an entry point group
◆ parse_map()
| pip._vendor.pkg_resources.EntryPoint.parse_map |
( |
|
cls, |
|
|
|
data, |
|
|
|
dist = None |
|
) |
| |
Parse a map of entry point groups
◆ resolve()
| pip._vendor.pkg_resources.EntryPoint.resolve |
( |
|
self | ) |
|
Resolve the entry point from its module and attrs.
◆ pattern
| pip._vendor.pkg_resources.EntryPoint.pattern |
|
static |
Initial value:= re.compile(
r'\s*'
r'(?P<name>.+?)\s*'
r'=\s*'
r'(?P<module>[\w.]+)\s*'
r'(:\s*(?P<attr>[\w.]+))?\s*'
r'(?P<extras>\[.*\])?\s*$'
)
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py