A wrapper for PyPI's API and RSS feed
Project description
letsbuilda-pypi
A wrapper for PyPI's API and RSS feeds.
Usage
Sync client
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
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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
letsbuilda-pypi-5.0.0.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for letsbuilda_pypi-5.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be7694f4e2f98f0a215077c2ee802fdb32e95156b71e05b9df55363a81c20fc |
|
MD5 | 60a3183742b7300cb31b5e269c6610fc |
|
BLAKE2b-256 | 67b8649110171b8b90c9dfb4dde03b6a722953a681214d704a55d0c7728f098f |