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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: letsbuilda_pypi-5.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9bc9ab85a3b578437824018809775640fdd7638fb6b5456edbf0f80fce85019a
MD5 b8067d1890c655abf3834cdfe28996f7
BLAKE2b-256 10ae5eb876c1703ab6bccb82629f2a1a50ce6950c6f36718444de59f5612d420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for letsbuilda_pypi-5.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b55a5ea25cf7bf85a7031d3517760d9802ec83bcab354465161e80f7fcd0914b
MD5 a5276b05d61b491d41abd558aa33c98c
BLAKE2b-256 b1770d3eba0ce2408d6e0bc4b5187f6dfe2a6794dba3b12837b3f908fbfaa37a

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