Pybraries
Pybraries is a Python wrapper for the libraries.io API. g You can use it to subscribe to email alerts for new versions of open source packages.
You can also use it to find information about many aspects of open source packages and repositories.
The full documentation is hosted at Read the Docs.
Quick Start
Install
Install from PyPI.:
pip install pybraries
Use
Get your API key from libraries.io.
Set your API key as to the LIBRARIES_API_KEY environment variable from the command line with
export LIBRARIES_API_KEY="your_libraries.io_api_key_goes_here"
Import the pybraries package and use it to subscribe to a package.
from pybraries.subscribe import Subscribe
s = Subscribe()
s.subscribe("pypi", "pandas")
Now you’ll get an email update every time a new version of pandas is released.
Here’s another example. Search for projects with visualization as a keyword and python as a language. Sort by the number of stars.
from pybraries.search import Search
search = Search()
info = search.project_search(keywords='visualization', sort='stars', platform='pypi')
print(info)
A list of dictionaries with project names and other project information is returned.
Note that the Libraries.io API is rate limited to 60 requests per minute.
All libraries.io methods are implemented, except updating a subscription to not include prereleases. This option can be toggled at the libraries.io website.
Search() and Subscribe() are the two classes in this package. See all their available methods by clicking on the method names in the left sidebar in the documentation.
Key Terms
- host
A repository host platform. e.g. GitHub
- owner
A repository owner. e.g. pandas-dev
- repo
A repository. e.g. pandas
- user
A repository user e.g. a GitHub username. e.g. discdiver
- platform
A package manager platform. e.g. PyPI
- project
A package or library distributed by a package manager platform. e.g. pandas
Note that many repos and projects share the same name. Many owners and repos also share the same name. Further, many owners are also users. Fun! 😁
Pybraries methods that return one item generally return a dict with information.
Methods that return multiple items return a list of dicts.
Docs
Check out the full pybraries documentation.
Getting Help
1. Check out the pybraries docs. 1. Check out the libraries.io docs. 1. Open an issue on GitHub or tag a question on Stack Overflow with “pybraries”.
Contributing
Contributions are welcome and appreciated! See Contributing.
License
Metadata
Release files for pybraries 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybraries-0.4.0.tar.gz | 10.2 kB | Without provenance | Details for pybraries-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybraries-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for pybraries-0.4.0-py3-none-any.whl |
Total release size: 20.6 kB
Release files / pybraries-0.4.0.tar.gz
| Download URL | pybraries-0.4.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a7d0eda430aebdec7dd3cc0f4667db8a2ab71f4ebac2dd7702a959a394869df
|
|
BLAKE2b-256 checksum How to use checksums |
d3c0d261412428aeaf05acdcdb1d449627565934deceafdad29d329dfaa8b5d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / pybraries-0.4.0-py3-none-any.whl
| Download URL | pybraries-0.4.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94110bb83268aee6b482df3204715c8caeddb75a7509e1351972098c0151277d
|
|
BLAKE2b-256 checksum How to use checksums |
8368587ee0f04a2478d30e833543e8c015dc3f929544a3ddc2dcb2ea943a21ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for pybraries 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.