python-buildhub
A simple wrapper on the Buildhub service. Basically, a glorified Elasticsearch over HTTP wrapper.
WORD OF WARNING
This is an experimental project, and the API is to be considered a prototype.
It's production-grade in terms of functionality (because it's so simple), but not only might things change but also consider it very minimal in features which means it can get better if you help out.
Install and Usage
Requires Python 3.
pip install python-buildhub
from buildhub import get_distinct_versions, get_distinct_buildids
print(get_distinct_versions(
# product="Firefox",
# channel="beta",
# startswith="64",
))
print(get_distinct_buildids(
# product="Firefox",
# channel="beta",
# startswith="2018",
))
If you want to use a different URL for the backend there are two ways to override it:
$ export BUILDHUB_SEARCH_URL=http://localhost:8888/api/search
$ python -c 'import buildhub; print(buildhub.SEARCH_URL)'
http://localhost:8888/api/search
or
from buildhub import get_distinct_versions
print(get_distinct_versions(
_search_url='http://localhost:8000/api/v1'
))
Considering that this project is just a wrapper for making a Elasticsearch search query in JSON over HTTP POST, if you want to know what query gets sent you can use:
from buildhub import get_distinct_versions
get_distinct_versions(_verbose=True)
...and it will print the JSON used on stdout.
Contributing
Clone repo, create an environment and run:
pip install -e ".[dev]"
To get automatic flake8 and black checking done in a git pre-commit
hook run:
therapist install
License
Delivery Console is licensed under the MPLv2. See the LICENSE file for details.
Metadata
Release files for python-buildhub 0.0.1
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 |
|---|---|---|---|---|
| python-buildhub-0.0.1.tar.gz | 4.2 kB | Without provenance | Details for python-buildhub-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_buildhub-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for python_buildhub-0.0.1-py3-none-any.whl |
Total release size: 14.1 kB
Release files / python-buildhub-0.0.1.tar.gz
| Download URL | python-buildhub-0.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
851d119310e2f13093498b61a3600f5e862ee75530fc7c8e31dc3054a57f156e
|
|
BLAKE2b-256 checksum How to use checksums |
dd14d035b0e1f13b47967b08a17dbeb2ddcfecce0bb651a5e7c4f7f1cf08df7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / python_buildhub-0.0.1-py3-none-any.whl
| Download URL | python_buildhub-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6adc5c0666f72eb28a6b63355bdcf09ff8fb4757fb1c3512f9689037b389287
|
|
BLAKE2b-256 checksum How to use checksums |
777f68e8b7f4d73e344e32084d6d2884444ae71052dccefbd03f8fbedcd77f88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for python-buildhub 0.0.1
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.