rberga06.utils.about.about#

class rberga06.utils.about.about(name: str, pkg: str)#

Bases: object

Utilities for distribution data access.

__init__(name: str, pkg: str) None#

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 of child in this distribution.

Attributes

name

The distribution's name.

pkg

The distribution's root package.

dist

Get the importlib.metadata.Distribution object.

version

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.

name: str#

The distribution’s name.

path(child: str) ContextManager[Path]#

Get the pathlib.Path of child in this distribution.

pkg: str#

The distribution’s root package.

property version: str#

Get the version.