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(/, **data: Any)[source]

Bases: pydantic.BaseModel

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]
class letsbuilda.pypi.models.models_json.Downloads(/, **data: Any)[source]

Bases: pydantic.BaseModel

Release download counts.

last_day: int[source]
last_month: int[source]
last_week: int[source]
class letsbuilda.pypi.models.models_json.Digests(/, **data: Any)[source]

Bases: pydantic.BaseModel

URL file digests.

blake2_b_256: str[source]
md5: str[source]
sha256: str[source]
class letsbuilda.pypi.models.models_json.URL(/, **data: Any)[source]

Bases: pydantic.BaseModel

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]
class letsbuilda.pypi.models.models_json.Info(/, **data: Any)[source]

Bases: pydantic.BaseModel

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]
license_expression: str | None[source]
license_files: list[str] | None[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', 'License-Expression', 'License-File', 'Classifier', 'Requires-Dist', 'Requires-Python', 'Requires-External', 'Project-URL', 'Provides-Extra', 'Provides-Dist', 'Obsoletes-Dist']] | None[source]
provides_extra: list[str] | None[source]
class letsbuilda.pypi.models.models_json.JSONPackageMetadata(/, **data: Any)[source]

Bases: pydantic.BaseModel

Package metadata.

info: Info[source]
last_serial: int[source]
urls: list[URL][source]
vulnerabilities: list[Vulnerability][source]