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