Skip to main content
Travis Status coveralls Documentation Status License Latest Release PyPI - Wheel PyPI - Python Version

Pybraries is a Python wrapper for the libraries.io API.

You can use it to subscribe to and unsubscribe from updates to open source packages.

You can also use it to find information about many aspects of open source packages and repositories.

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’re subscribed to updates to the pandas package.

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(sort='stars', keywords='visualization', languages='python'])
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 methods 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

manager

A package manager. e.g. PyPI

package

A package distributed by a package manager. e.g. pandas

Note that many repos and packages share the same name. Many owners and repos also share the same name. Further, many owners are also users.

Pybraries methods that return one item generally return a dict with information.

Methods that return multiple items return a list of dicts.

Docs

Getting Help

  1. Check out the pybraries docs.

  2. Check out the libraries.io docs.

  3. Open an issue on GitHub or tag a question on Stack Overflow with “pybraries”.

Contributing

  • Contributions are welcome and appreciated! See Contributing.

License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybraries-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybraries-0.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pybraries-0.1.0.tar.gz.

File metadata

  • Download URL: pybraries-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for pybraries-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6275aaa9bbe1eafd8db126119ba48998b3cf6ecdea54f3e7ba49b34258296249
MD5 e6319add0234cc9cc86bcaff1789fef8
BLAKE2b-256 db106b512a5a90b59083c9c5976fdb5ca0fd2a50391698c49506b6e88b420e96

See more details on using hashes here.

File details

Details for the file pybraries-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pybraries-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for pybraries-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d2093f91c02a3eab0bfe7795a991caba5d932be1358343403467d7751a71569
MD5 e83c314f077538b7177136600fa8e2c5
BLAKE2b-256 2ff59f0afde5b37df57ff0a7bed11678add7e7fb98bc7c0910fd45f6a89b2b65

See more details on using hashes here.

Supported by

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