Skip to main content

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


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.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

letsbuilda_pypi-5.2.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file letsbuilda_pypi-5.2.0.tar.gz.

File metadata

  • Download URL: letsbuilda_pypi-5.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for letsbuilda_pypi-5.2.0.tar.gz
Algorithm Hash digest
SHA256 999a6599d1376378bfc9b8ace9acf2edca297cc8175afe809feb285d68ff899f
MD5 f7e951327ccb3300f1c8a223b8fee932
BLAKE2b-256 8824da8a02cd957b7e5daad39b07c81d49d37e58d43ec44f29b36f830a5b1b20

See more details on using hashes here.

File details

Details for the file letsbuilda_pypi-5.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for letsbuilda_pypi-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cffe13b7e8a07e35dbc7334e8bc88a0a14a9b2d3b777a9119612e2327f186f4
MD5 39cc9389531a1f01ce2bf1fc3b7c65a8
BLAKE2b-256 5d6c08ffce28732fdc0a907cd579109d2633ad6a0d06318813c29fc1f191c3af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page