{ "info": { "author": "puntonim", "author_email": "foo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP" ], "description": "[![Build Status](https://travis-ci.org/puntonim/service-rabbit.svg?branch=master)](https://travis-ci.org/puntonim/service-rabbit)\n\n# Rabbit service client\n\nThis package is service client for Rabbit API.\n\n## Client usage\n\n```python\n# Configure settings.\nimport service_rabbit.conf\nd = dict(\n BASE_URL='http://inspire-prod-broker1.cern.ch:15672/api',\n REQUEST_TIMEOUT=30,\n HTTP_AUTH_USERNAME='user',\n HTTP_AUTH_PASSWORD='pass',\n)\nservice_rabbit.conf.settings.configure(**d)\n\n# Use the client.\nfrom service_rabbit.client import RabbitClient\nclient = RabbitClient()\nresponse = client.get_queue('inspire', 'orcid_push')\nresponse.raise_for_result()\nconsumers = response.get_consumers_count()\nmessages = response.get_messages_count()\n```\n\n## Development\n\n```bash\n# Create a venv and install the requirements:\n$ make venv\n\n# Run isort and lint:\n$ make isort\n$ make lint\n\n# Run all the tests:\n$ make test # tox against Python27 and Python36.\n$ tox -e py27 # tox against a specific Python version.\n$ pytest # pytest against the active venv.\n\n# Run a specific test:\n$ make test/tests/test_client.py # tox against Python27 and Python36.\n$ tox -e py27 -- tests/test_client.py # tox against a specific Python version.\n$ pytest tests/test_client.py # pytest against the active venv.\n```\n\nTo publish on PyPi, first set the PyPi credentials:\n\n```bash\n# Edit .pypirc:\n$ cat $HOME/.pypirc\n[pypi]\nusername: myuser\npassword: mypass\n```\n\n```bash\n# Edit the version in `setup_gen.py`.\n# ... version=pep440_version('1.1.1'),\n# Then generate setup.py with:\n$ make setup.py\n# Commit, tag, push:\n$ git commit -m '1.1.1 release'\n$ git tag 1.1.1\n$ git push origin master --tags\n\n# Finally publish:\n$ make publish\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/puntonim/service-rabbit", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "service-rabbit", "package_url": "https://pypi.org/project/service-rabbit/", "platform": "", "project_url": "https://pypi.org/project/service-rabbit/", "project_urls": { "Homepage": "https://github.com/puntonim/service-rabbit" }, "release_url": "https://pypi.org/project/service-rabbit/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Rabbit service client", "version": "1.0.0" }, "last_serial": 4420281, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "73dd6a732a09d7c94f0520a6cfdd7067", "sha256": "0bb46d261b33f0a3b61b546db66bed971f3bea229afa310cf05aac7714a96c68" }, "downloads": -1, "filename": "service-rabbit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "73dd6a732a09d7c94f0520a6cfdd7067", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4417, "upload_time": "2018-10-26T18:21:49", "url": "https://files.pythonhosted.org/packages/2d/ea/f6d64ad3bcb0865215b0c9469f40f1b6a58ab27b63eb028824891b1c3221/service-rabbit-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "73dd6a732a09d7c94f0520a6cfdd7067", "sha256": "0bb46d261b33f0a3b61b546db66bed971f3bea229afa310cf05aac7714a96c68" }, "downloads": -1, "filename": "service-rabbit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "73dd6a732a09d7c94f0520a6cfdd7067", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4417, "upload_time": "2018-10-26T18:21:49", "url": "https://files.pythonhosted.org/packages/2d/ea/f6d64ad3bcb0865215b0c9469f40f1b6a58ab27b63eb028824891b1c3221/service-rabbit-1.0.0.tar.gz" } ] }