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.2.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for letsbuilda_pypi-5.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da75605f38699bd9b3a8045bfcfd2a3b8d45e05b03a6b5ef19ca0e1514053130 |
|
MD5 | 1765d2f6a5e99fa93f5060f4e2800d88 |
|
BLAKE2b-256 | 3c605a628a57462c0f9ae88d9d27b812789317a05d6671e937dfc6afe8c79a11 |