{ "info": { "author": "Jesue Junior", "author_email": "jesuesousa@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# EQueue\nElastic Queue is a library to bear a PubSub projects\n\n### How to use it\n\nInstall via PIP\n\n```shell\n $ pip install equeue\n```\n\n#### Producing\n\nUsing ipython\n\n```python\n\n In [1]: from equeue.rabbit.publisher import Publisher\n\n In [2]: pub = Publisher(host='localhost', username='guest', password='guest', queue_name='t')\n\n In [3]: pub.put(message_dict={'id': 1})\n Out[3]: \n\n```\n\n#### By poll\n\nUsing ipython\n\n```python\n\n In [1]: from equeue.rabbit.subscriber import Subscriber\n\n In [2]: sub = Subscriber(host='localhost', username='guest', password='guest', queue_name='t')\n\n In [3]: msg = sub.get()\n\n In [4]: if msg:\n ...: print(msg)\n ...: \n```\n\n#### Consuming\n\nCreating a main.py you'd see better.\n\n```python\n\n from equeue.rabbit.subscriber import Subscriber\n\n def events_out(callback, message, delivery_tag):\n print(message)\n print(delivery_tag)\n callback.ack(delivery_tag)\n\n def main():\n\n sub = Subscriber(host='localhost', username='guest',\n password='guest', queue_name='t')\n \n sub.setup_consumer(callback=events_out)\n while True:\n sub.consume()\n if __name__ == '__main__':\n main()\n\n```\n\nThen\n\n```shell\n $ python main.py\n``` \n\n### Developing mode\n\nRunning tests\n\nTo run the project's test you will need to have pytest installed. The instalation is simple as :\n\n```shell\n$ pip install pytest\n```\n\nAnd to run the tests you need to ajust yout `PYTHONPATH`\n\n```shell\n $ PYTHONPATH=equeue py.test\n```\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jesuejunior/equeue", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "equeue", "package_url": "https://pypi.org/project/equeue/", "platform": "", "project_url": "https://pypi.org/project/equeue/", "project_urls": { "Homepage": "https://github.com/jesuejunior/equeue" }, "release_url": "https://pypi.org/project/equeue/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Elastic Queue is a library to bear a PubSub projects. ", "version": "0.1.5" }, "last_serial": 3439712, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "7306713cfc74d612acf9142a77551feb", "sha256": "726e3cbb1ba4d81cdf636615594c77746e617d6cf2b0f546dddbd5d68e5117fe" }, "downloads": -1, "filename": "equeue-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "7306713cfc74d612acf9142a77551feb", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9541, "upload_time": "2016-09-28T01:27:01", "url": "https://files.pythonhosted.org/packages/75/8d/776a3b9b5ac447f6a563e2e4576a2ef3d17610d5771e0b371e7640f3e8b6/equeue-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ddc8186b4f58f7430508e55cecc3d997", "sha256": "fe99c52b45f50e6875305cde3f820aa22317dc66336e760b78fd83e87cee35d5" }, "downloads": -1, "filename": "equeue-0.1.4.tar.gz", "has_sig": false, "md5_digest": "ddc8186b4f58f7430508e55cecc3d997", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5119, "upload_time": "2016-09-28T01:26:59", "url": "https://files.pythonhosted.org/packages/c7/69/94afbc848f41c2d12580f99dde8794fee52273728c6a3031925d52d3363a/equeue-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "49e0970d83774088d12bff0eaed5b63c", "sha256": "06a6034306a483d0f6f86fb015dbc6ba0edcf1e7be152d1f7514c020823dd36a" }, "downloads": -1, "filename": "equeue-0.1.5.tar.gz", "has_sig": false, "md5_digest": "49e0970d83774088d12bff0eaed5b63c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5511, "upload_time": "2017-12-23T22:21:21", "url": "https://files.pythonhosted.org/packages/a6/f5/4dff1f1585895df46adbe7316669c74c68d35abe98783c0ed6987d21caf2/equeue-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49e0970d83774088d12bff0eaed5b63c", "sha256": "06a6034306a483d0f6f86fb015dbc6ba0edcf1e7be152d1f7514c020823dd36a" }, "downloads": -1, "filename": "equeue-0.1.5.tar.gz", "has_sig": false, "md5_digest": "49e0970d83774088d12bff0eaed5b63c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5511, "upload_time": "2017-12-23T22:21:21", "url": "https://files.pythonhosted.org/packages/a6/f5/4dff1f1585895df46adbe7316669c74c68d35abe98783c0ed6987d21caf2/equeue-0.1.5.tar.gz" } ] }