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

Bases: pydantic.BaseModel

Package metadata.

info: Info[source]
last_serial: int[source]
urls: list[URL][source]
vulnerabilities: list[Vulnerability][source]
class letsbuilda.pypi.models.Package(/, **data: Any)[source]

Bases: pydantic.BaseModel

Metadata for a package.

title: str[source]
releases: list[Release][source]
class letsbuilda.pypi.models.RSSPackageMetadata(/, **data: Any)[source]

Bases: pydantic.BaseModel

RSS Package metadata.

title: str[source]
version: str | None[source]
guid: str | None[source]
description: str | None[source]
author: str | None[source]
publication_date: ISODateTime[source]
classmethod try_split_title(data: dict) dict[source]

Attempt to split title into package name and version.