letsbuilda.pypi.models.models_json

Models for JSON responses.

Classes

Vulnerability

Security vulnerability.

Downloads

Release download counts.

Digests

URL file digests.

URL

Package release URL.

Info

Package metadata internal info block.

JSONPackageMetadata

Package metadata.

Module Contents

class letsbuilda.pypi.models.models_json.Vulnerability[source]

Security vulnerability.

id: str[source]
aliases: list[str][source]
source: str[source]
withdrawn: datetime.datetime | None[source]
summary: str[source]
details: str[source]
fixed_in: list[str][source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_json.Downloads[source]

Release download counts.

last_day: int[source]
last_month: int[source]
last_week: int[source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_json.Digests[source]

URL file digests.

blake2_b_256: str[source]
md5: str[source]
sha256: str[source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_json.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_json.Info[source]

Package metadata internal info block.

author: str[source]
author_email: str[source]
bugtrack_url: None[source]
classifiers: list[str][source]
description: str[source]
description_content_type: str[source]
docs_url: None[source]
download_url: str[source]
downloads: Downloads[source]
home_page: str[source]
keywords: str[source]
license: str[source]
maintainer: str[source]
maintainer_email: str[source]
name: str[source]
package_url: str[source]
platform: str | None[source]
project_url: str[source]
project_urls: dict[str, str][source]
release_url: str[source]
requires_dist: list[str][source]
requires_python: str[source]
summary: str[source]
version: str[source]
yanked: bool[source]
yanked_reason: str | None[source]
dynamic: list[Literal['Platform', 'Supported-Platform', 'Summary', 'Description', 'Description-Content-Type', 'Keywords', 'Home-page', 'Download-URL', 'Author', 'Author-email', 'Maintainer', 'Maintainer-email', 'License', 'Classifier', 'Requires-Dist', 'Requires-Python', 'Requires-External', 'Project-URL', 'Provides-Extra', 'Provides-Dist', 'Obsoletes-Dist']] | None[source]
provides_extra: list[str] | None[source]
classmethod from_dict(data: dict) Self[source]

Build an instance from a dictionary.

class letsbuilda.pypi.models.models_json.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.