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.1.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for letsbuilda_pypi-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a0dff883e0d2307a558b8bfe1ce70beb120d2c036fbeab03a5b860d0718a968 |
|
MD5 | 3ce9a9a87899cc90145a36b785c1664a |
|
BLAKE2b-256 | f0431039f855c4e1e3cb12c06518757d3c7b3fde8ff706eb82f5da175a97d12d |