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.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for letsbuilda_pypi-5.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683c4aa0b6924d36ef1769c82b0b53d0dff082c1d25adcc6f41433f0d2494395 |
|
MD5 | 5b0688063e3449f15080cb98c457e789 |
|
BLAKE2b-256 | 41a44ee475f98e76bb41d7b7b71855d98f2f3aec1824b4384d422b8e2eadba67 |