typing#

TypedDict declarations for shards.

These are helpful for auto-complete, but do not validate at runtime and are not normative. They are intentionally not shared with another project (conda) to reduce coupling.

Classes#

PackageRecordDict

Basic package attributes that this module cares about.

RepodataInfoDict

dict() -> new empty dictionary

RepodataDict

Packages plus info.

ShardsIndexDict

Shards index as deserialized from repodata_shards.msgpack.zst

Attributes#

class PackageRecordDict#

Bases: TypedDict

Basic package attributes that this module cares about.

Initialize self. See help(type(self)) for accurate signature.

name: str#
version: str#
build: str#
build_number: int#
sha256: NotRequired[str | bytes]#
md5: NotRequired[str | bytes]#
depends: NotRequired[list[str]]#
constrains: NotRequired[list[str]]#
noarch: NotRequired[str]#
ShardDict#
class RepodataInfoDict#

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

Initialize self. See help(type(self)) for accurate signature.

base_url: str#
shards_base_url: str#
subdir: str#
class RepodataDict#

Bases: ShardDict

Packages plus info.

Initialize self. See help(type(self)) for accurate signature.

info: RepodataInfoDict#
repodata_version: int#
class ShardsIndexDict#

Bases: TypedDict

Shards index as deserialized from repodata_shards.msgpack.zst

Initialize self. See help(type(self)) for accurate signature.

info: RepodataInfoDict#
version: int#
shards: dict[str, bytes]#