letsbuilda.pypi.models

Models to hold the data.

Submodules

Classes

JSONPackageMetadata

Package metadata.

Package

Metadata for a package.

RSSPackageMetadata

RSS Package metadata.

Package Contents

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

class letsbuilda.pypi.models.RSSPackageMetadata[source]

RSS Package metadata.

title: str[source]
version: str | None[source]
guid: str | None[source]
description: str | None[source]
author: str | None[source]
publication_date: datetime.datetime[source]
classmethod build_from(data: dict[str, str]) Self[source]

Build an instance from raw data.