{ "info": { "author": "Peter Bengtsson", "author_email": "mail@peterbe.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# python-buildhub\n\n[![Build Status](https://travis-ci.org/peterbe/python-buildhub.svg?branch=master)](https://travis-ci.org/peterbe/python-buildhub)\n[![Code style](https://img.shields.io/badge/Code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nA simple wrapper on the Buildhub service. Basically, a glorified\nElasticsearch over HTTP wrapper.\n\n## WORD OF WARNING\n\n**This is an experimental project, and the API is to be considered a prototype.**\n\nIt's production-grade in terms of functionality (because it's so simple), but\nnot only might things change but also consider it very minimal in features\nwhich means it can get better if you help out.\n\n## Install and Usage\n\nRequires Python 3.\n\n```bash\npip install python-buildhub\n```\n\n```python\nfrom buildhub import get_distinct_versions, get_distinct_buildids\n\nprint(get_distinct_versions(\n # product=\"Firefox\",\n # channel=\"beta\",\n # startswith=\"64\",\n))\n\nprint(get_distinct_buildids(\n # product=\"Firefox\",\n # channel=\"beta\",\n # startswith=\"2018\",\n))\n```\n\nIf you want to use a different URL for the backend there are two ways to override it:\n\n```bash\n$ export BUILDHUB_SEARCH_URL=http://localhost:8888/api/search\n$ python -c 'import buildhub; print(buildhub.SEARCH_URL)'\nhttp://localhost:8888/api/search\n```\n\nor\n\n```python\nfrom buildhub import get_distinct_versions\n\nprint(get_distinct_versions(\n _search_url='http://localhost:8000/api/v1'\n))\n```\n\nConsidering that this project is just a wrapper for making a Elasticsearch search\nquery in JSON over HTTP POST, if you want to know what query gets sent you can use:\n\n```python\nfrom buildhub import get_distinct_versions\n\nget_distinct_versions(_verbose=True)\n```\n\n...and it will print the JSON used on `stdout`.\n\n## Contributing\n\nClone repo, create an environment and run:\n\n```bash\npip install -e \".[dev]\"\n```\n\nTo get automatic `flake8` and `black` checking done in a git pre-commit\nhook run:\n\n```bash\ntherapist install\n```\n\n## License\n\nDelivery Console is licensed under the MPLv2. See the\n[LICENSE](LICENSE) file for details.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/peterbe/python-buildhub", "keywords": "", "license": "MPL2", "maintainer": "", "maintainer_email": "", "name": "python-buildhub", "package_url": "https://pypi.org/project/python-buildhub/", "platform": "", "project_url": "https://pypi.org/project/python-buildhub/", "project_urls": { "Homepage": "https://github.com/peterbe/python-buildhub" }, "release_url": "https://pypi.org/project/python-buildhub/0.0.1/", "requires_dist": [ "requests", "twine ; extra == 'dev'", "therapist ; extra == 'dev'", "black ; extra == 'dev'", "flake8 ; extra == 'dev'", "bumpversion ; extra == 'dev'", "tox ; extra == 'dev'" ], "requires_python": "", "summary": "Python interface to Buildhub service", "version": "0.0.1" }, "last_serial": 4548133, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e4b005e938d90a553a22b5bca61a7f6c", "sha256": "e6adc5c0666f72eb28a6b63355bdcf09ff8fb4757fb1c3512f9689037b389287" }, "downloads": -1, "filename": "python_buildhub-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b005e938d90a553a22b5bca61a7f6c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9963, "upload_time": "2018-11-30T18:12:16", "url": "https://files.pythonhosted.org/packages/77/7f/68e8b7f4d73e344e32084d6d2884444ae71052dccefbd03f8fbedcd77f88/python_buildhub-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52d3bb0cd4493b6d2e47b0f1b079bd22", "sha256": "851d119310e2f13093498b61a3600f5e862ee75530fc7c8e31dc3054a57f156e" }, "downloads": -1, "filename": "python-buildhub-0.0.1.tar.gz", "has_sig": false, "md5_digest": "52d3bb0cd4493b6d2e47b0f1b079bd22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2018-11-30T18:12:17", "url": "https://files.pythonhosted.org/packages/dd/14/d035b0e1f13b47967b08a17dbeb2ddcfecce0bb651a5e7c4f7f1cf08df7f/python-buildhub-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4b005e938d90a553a22b5bca61a7f6c", "sha256": "e6adc5c0666f72eb28a6b63355bdcf09ff8fb4757fb1c3512f9689037b389287" }, "downloads": -1, "filename": "python_buildhub-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b005e938d90a553a22b5bca61a7f6c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9963, "upload_time": "2018-11-30T18:12:16", "url": "https://files.pythonhosted.org/packages/77/7f/68e8b7f4d73e344e32084d6d2884444ae71052dccefbd03f8fbedcd77f88/python_buildhub-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52d3bb0cd4493b6d2e47b0f1b079bd22", "sha256": "851d119310e2f13093498b61a3600f5e862ee75530fc7c8e31dc3054a57f156e" }, "downloads": -1, "filename": "python-buildhub-0.0.1.tar.gz", "has_sig": false, "md5_digest": "52d3bb0cd4493b6d2e47b0f1b079bd22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2018-11-30T18:12:17", "url": "https://files.pythonhosted.org/packages/dd/14/d035b0e1f13b47967b08a17dbeb2ddcfecce0bb651a5e7c4f7f1cf08df7f/python-buildhub-0.0.1.tar.gz" } ] }