letsbuilda.pypi.models.models_package

Models for package metadata.

Classes

URL

Package release URL.

JSONPackageMetadata

Package metadata.

Distribution

Metadata for a distribution.

Release

Metadata for a release.

Package

Metadata for a package.

Module Contents

class letsbuilda.pypi.models.models_package.URL[source]

Package release URL.

comment_text: str[source]
digests: Digests[source]
downloads: int[source]
filename: str[source]
has_sig: bool[source]
md5_digest: str[source]
packagetype: str[source]
python_version: str[source]
requires_python: str | None[source]
size: int[source]
upload_time: datetime.datetime[source]
upload_time_iso_8601: datetime.datetime[source]
url: str[source]
yanked: bool[source]
yanked_reason: None[source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_package.JSONPackageMetadata[source]

Package metadata.

info: Info[source]
last_serial: int[source]
urls: list[URL][source]
vulnerabilities: list[Vulnerability][source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_package.Distribution[source]

Metadata for a distribution.

filename: str[source]
url: str[source]
classmethod from_json_api_data(data: letsbuilda.pypi.models.models_json.URL) Self[source]

Build an instance from the JSON API data.

class letsbuilda.pypi.models.models_package.Release[source]

Metadata for a release.

version: str[source]
distributions: list[Distribution][source]
classmethod from_json_api_data(data: letsbuilda.pypi.models.models_json.JSONPackageMetadata) Self[source]

Build an instance from the JSON API data.

class letsbuilda.pypi.models.models_package.Package[source]

Metadata for a package.

title: str[source]
releases: list[Release][source]
classmethod from_json_api_data(data: letsbuilda.pypi.models.models_json.JSONPackageMetadata) Self[source]

Build an instance from the JSON API data.