Metadata-Version: 2.1
Name: letsbuilda-pypi
Version: 5.0.0b2
Summary: A wrapper for PyPI's API and RSS feed
Author-email: Bradley Reynolds <bradley.reynolds@darbia.dev>
License: MIT
Project-URL: repository, https://github.com/letsbuilda/letsbuilda-pypi/
Project-URL: documentation, https://docs.letsbuilda.dev/letsbuilda-pypi/
Requires-Python: >=3.11.4
Description-Content-Type: text/markdown
Provides-Extra: async
Provides-Extra: dev
Provides-Extra: tests
Provides-Extra: docs
License-File: LICENSE

# letsbuilda-pypi

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

## Usage

### Sync client

```py
from requests import Session
from letsbuilda.pypi import PyPIServices

http_session = Session()
pypi_client = PyPIServices(http_session)

package_metadata = pypi_client.get_package_metadata("letsbuilda-pypi")
```

### Async client

```py
from aiohttp import ClientSession
from letsbuilda.pypi.clients.async_client import PyPIServices

http_session = aiohttp.ClientSession()
pypi_client = PyPIServices(http_session)

package_metadata = await pypi_client.get_package_metadata("letsbuilda-pypi")
```
