yarg
A semi hard Cornish cheese, also queries PyPI (PyPI client)
What it is and what it does
Yarg wraps PyPI's JSON API to let you programmatically fetch and inspect package metadata from Python. It abstracts HTTP requests and JSON parsing into a simple object model where you can query package names, authors, release history, and distribution formats (wheels, eggs, source distributions). The package depends only on requests, making it lightweight to integrate into tools that need to inspect PyPI without building HTTP calls from scratch.
The library is in Beta status and has been dormant for over two years, with minimal active maintenance. Its last update added Python 3.12 support, but the core functionality has remained stable since its initial release in 2014. It works with modern Python versions (3.8 through 3.12) and PyPy, though you should verify that PyPI's API hasn't changed in ways that would break yarg's parsing.
Use it for:
- Build a tool that monitors when specific packages receive new releases on PyPI
- Query package metadata programmatically to gather information for dependency analysis or auditing
- Fetch the latest package version and release history without making raw HTTP calls to PyPI
- Inspect package distribution formats (wheel, egg, source) to determine compatibility
- Discover newly published packages or recently updated packages via PyPI's RSS feeds
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Yarg is a PyPI client library that queries package metadata from PyPI, returning structured information about packages including their releases, authors, and distribution formats.
Yes, if you need lightweight PyPI metadata queries and don't require active maintenance. The low install friction (one dependency) and permissive license make it a reasonable choice for simple use cases. However, verify that PyPI's API remains compatible with yarg's parsing logic, since the package is dormant and you may need to maintain a fork or switch to an actively maintained alternative if PyPI changes its response format.
Install
yarg on PyPI
pip
pip install yarguv
uv add yargpoetry
poetry add yargInstalling yarg
Before you install
Low install friction with a single dependency on requests. The package is dormant (last release 735 days ago) but received a Python 3.12 support update in its most recent version, suggesting minimal ongoing maintenance.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution in your own projects.
Quickstart
pip install yarg
import yarg
package = yarg.get("requests")
print(package.name, package.author)
Verify before relying
- Whether PyPI's JSON API remains stable and compatible with yarg's parsing logic after 735 days of dormancy
- Current state of the GitHub repository (archived status, open issues, or breaking API changes in PyPI itself)
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | dormant — 735 days since the last release |
| First released | |
| Downloads | 1,245,469/month — #4,167 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yarg-0.1.10-py2.py3-none-any.whl
Keywords: pypi, client, packages
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
ipwhoisRetrieves and parses whois and RDAP data for…
permissive · top 15,000 on PyPI
aioymapsaioymaps is an async client library for…
permissive · top 15,000 on PyPI
yaqlYAQL is an embeddable query language for Python…
permissive · top 15,000 on PyPI
pipreqsScans Python project source code to detect…
permissive · top 5,000 on PyPI
pipreqs-fivetranScans Python project source files and Jupyter…
permissive · top 15,000 on PyPI
georss-clientA framework for building client libraries that…
permissive · top 15,000 on PyPI
georss-generic-clientProvides generic access to GeoRSS feeds with…
permissive · top 15,000 on PyPI
pypistatsQueries the PyPI Stats API to retrieve download…
permissive · top 15,000 on PyPI
rocketreachPython client library for the RocketReach API,…
unclear · top 15,000 on PyPI
azure-applicationinsightsProvides a Python client library for querying…
permissive · top 5,000 on PyPI