Skip to main content

A thread-safe Python wrapper for the libraries.io API

Project description

PyPi Supported Python versions lint coverage

Quibraries is a Python wrapper for the libraries.io API which is based on Pybraries. Currently the package fully supports the searching functionality, meaning that the full range of available commands from libraries.io is supported.

The full documentation is hosted at Read the Docs.

Differences with Pybraries

The main reason of existence of this package is that Pybraries is not thread-safe. Further, the API key can be provided only as an environment variable, which makes it difficult to change during execution. Additionally, is when a query returns multiple pages, in Pybraries the iteration has to happen manually and by the user. This is because the returned object is not Iterable, thus convenient “pythonic” constructs cannot be used. The aforementioned reasons (and their associated pain points) sparked the creation of this project which aims to offer what Pybraries does, but also adding these - to us - important features.

Key Terms

Below a list of the key terms if provided which is synonymous with the libraries.io concepts.

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

It is important to note that many repositories and projects share the same name. Additionally, many owners and repos also share the same name. Further, many owners are also users.

Since this library is a wrapper around functionality that is already provided by libraries.io the items returned are dependent on the API response. In normal circumstances, the answer type is defined by the number of returned items. In the case of a single element returned, then it is a dictionary. If the result contains more than one item, then the result is a list of dictionaries.

Docs

Getting Help

  1. Check out the quibraries documentation.

  2. Check out the libraries.io docs.

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

Contributing

  • Contributions are welcome and appreciated! See Contributing.

License

This software package is governed by the terms and conditions of the MIT license

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

quibraries-1.1.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

quibraries-1.1.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file quibraries-1.1.0.tar.gz.

File metadata

  • Download URL: quibraries-1.1.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for quibraries-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f662f8d01300d698228e6fe70b22338213b94bca9246fbbe88b03ab95ab787b8
MD5 71bfc3c23cfa42705fa4838d3e2501f5
BLAKE2b-256 d18fddfcc29b0b4af29fcf0fbe76bc24f6b33fc552d457b5834d56140e835575

See more details on using hashes here.

File details

Details for the file quibraries-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: quibraries-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for quibraries-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1748bb6e1edb6fc4f2062db6e9113070623db734dda1e300a3fec2a261cb26
MD5 bc0befba7c138c16bc16e78485f5c9e3
BLAKE2b-256 a95d5ccc6cc13ccb271d3ea7e86f80116b995695d1197c68bf86813952f0e1c8

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