letsbuilda.pypi.async_client¶
The async client.
Exceptions¶
Raised when a package is not found. |
Classes¶
Package metadata. |
|
Metadata for a package. |
|
RSS Package metadata. |
|
A class for interacting with PyPI. |
Module Contents¶
- exception letsbuilda.pypi.async_client.PackageNotFoundError(package_title: str, package_version: str | None)[source]¶
Bases:
Exception
Raised when a package is not found.
- class letsbuilda.pypi.async_client.JSONPackageMetadata[source]¶
Package metadata.
- vulnerabilities: list[Vulnerability][source]¶
- class letsbuilda.pypi.async_client.Package[source]¶
Metadata for a package.
- 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.async_client.RSSPackageMetadata[source]¶
RSS Package metadata.
- publication_date: datetime.datetime[source]¶
- class letsbuilda.pypi.async_client.PyPIServices(http_client: httpx.AsyncClient)[source]¶
A class for interacting with PyPI.
- async get_rss_feed(feed_url: str) list[letsbuilda.pypi.models.RSSPackageMetadata] [source]¶
Get the new packages RSS feed.