rberga06.utils.about.about#
- class rberga06.utils.about.about(name: str, pkg: str)#
Bases:
object
Utilities for distribution data access.
Methods
__init__
(name, pkg)dep
(name, /)Get infos about this dependency.
deps
()Get infos about all dependencies.
deps_enum
(enum)Decorate a
DepsEnum
.path
(child)Get the
pathlib.Path
ofchild
in this distribution.Attributes
The distribution's name.
The distribution's root package.
Get the
importlib.metadata.Distribution
object.Get the version.
- dep(name: str, /) dependency #
Get infos about this dependency.
- deps() dict[str, dependency] #
Get infos about all dependencies.
- deps_enum(enum: _E) _E #
Decorate a
DepsEnum
.
- property dist: Distribution#
Get the
importlib.metadata.Distribution
object.
- path(child: str) ContextManager[Path] #
Get the
pathlib.Path
ofchild
in this distribution.