Metadata-Version: 2.4
Name: letsbuilda-pypi
Version: 6.0.1
Summary: A wrapper for PyPI's API and RSS feed
Author-email: Bradley Reynolds <bradley.reynolds@tailstory.dev>
License-Expression: MIT
Project-URL: repository, https://github.com/letsbuilda/letsbuilda-pypi/
Project-URL: documentation, https://docs.letsbuilda.dev/letsbuilda-pypi/
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.28.1
Requires-Dist: xmltodict>=1.0.4
Requires-Dist: pydantic>=2.13.4
Dynamic: license-file

# letsbuilda-pypi

A wrapper for [PyPI's API and RSS feeds](https://warehouse.pypa.io/api-reference/index.html).

## Usage

### Sync client

```py
from httpx import Client
from letsbuilda.pypi import PyPIServices

http_client = Client()
pypi_client = PyPIServices(http_client)

print(pypi_client.get_rss_feed(pypi_client.NEWEST_PACKAGES_FEED_URL))
print(pypi_client.get_package_metadata("letsbuilda-pypi"))
```

### Async client

```py
from httpx import AsyncClient
from letsbuilda.pypi.async_client import PyPIServices

http_client = AsyncClient()
pypi_client = PyPIServices(http_session)

print(await pypi_client.get_rss_feed(pypi_client.NEWEST_PACKAGES_FEED_URL))
print(await pypi_client.get_package_metadata("letsbuilda-pypi"))
```
