{ "info": { "author": "AWeber Communications", "author_email": "api@aweber.com", "bugtrack_url": null, "classifiers": [], "description": "All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n * Neither the name of Sprockets nor the names of its\n contributors may be used to endorse or promote products derived from this\n software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nDescription: sprockets.mixins.correlation\n ============================\n \n |Version| |Status| |License| |Documentation|\n \n This sprocket provides a single mix-in that imbues your ``RequestHandler``\n with a unique correlation ID. If a correlation ID is present upon input then\n it will be preserved in the output. It is also available for your use as\n the ``correlation_id`` property.\n \n Installation\n ------------\n \n ``sprockets.mixins.correlation`` is available on the `Python Package Index`_\n and can be installed via ``pip``:\n \n .. code-block:: shell\n \n $ pip install sprockets.mixins.correlation\n \n Example\n -------\n \n .. code-block:: python\n \n from sprockets.mixins import correlation\n from tornado import ioloop, web\n \n class Handler(correlation.HandlerMixin, web.RequestHandler):\n def get(self):\n self.finish('my id is {0}'.format(self.correlation_id)\n \n if __name__ == '__main__':\n application = web.Application([('/', Handler)])\n application.listen(8888)\n ioloop.IOLoop.instance().start()\n \n Generated Correlation ID\n ~~~~~~~~~~~~~~~~~~~~~~~~\n \n .. code-block:: http\n \n GET / HTTP/1.1\n Host: localhost:8888\n Connection: keep-alive\n \n .. code-block:: http\n \n HTTP/1.1 200 OK\n Correlation-ID: 0a2b6080-e4da-43bf-a2a5-38d861846cb9\n Content-Length: 44\n \n my id is 0a2b6080-e4da-43bf-a2a5-38d861846cb9\n \n Relayed Correlation ID\n ~~~~~~~~~~~~~~~~~~~~~~\n \n .. code-block:: http\n \n GET / HTTP/1.1\n Host: localhost:8888\n Connection: keep-alive\n Correlation-Id: 4676922073c4c59b1f5e6b4a18894bd46f867316\n \n .. code-block:: http\n \n HTTP/1.1 200 OK\n Correlation-ID: 4676922073c4c59b1f5e6b4a18894bd46f867316\n Connection: close\n Content-Length: 48\n \n my id is 4676922073c4c59b1f5e6b4a18894bd46f867316\n \n \n .. |Version| image:: https://img.shields.io/pypi/v/sprockets.mixins.correlation.svg\n :target: https://pypi.python.org/pypi/sprockets.mixins.correlation\n .. |Status| image:: https://img.shields.io/travis/sprockets/sprockets.mixins.correlation.svg\n :target: https://travis-ci.org/sprockets/sprockets.mixins.correlation\n .. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.mixins.correlation.svg\n :target: http://coveralls.io/r/sprockets/sprockets.mixins.correlation\n .. |Downloads| image:: https://img.shields.io/pypi/dm/sprockets.mixins.correlation.svg\n :target: https://pypi.python.org/pypi/sprockets.mixins.correlation\n .. |License| image:: https://img.shields.io/github/license/sprockets/sprockets.mixins.correlation.svg?\n :target: https://sprocketsmixinscorrelation.readthedocs.io/\n .. |Documentation| image:: https://readthedocs.org/projects/sprocketsmixinscorrelation/badge\n :target: https://sprocketsmixinscorrelation.readthedocs.io/\n \n .. _Python Package Index: https://pypi.python.org/pypi/sprockets.mixins.correlation\n \nPlatform: UNKNOWN\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: Intended Audience :: Developers\nClassifier: License :: OSI Approved :: BSD License\nClassifier: Natural Language :: English\nClassifier: Operating System :: OS Independent\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.6\nClassifier: Programming Language :: Python :: 3.5\nClassifier: Programming Language :: Python :: 3.7\nClassifier: Programming Language :: Python :: Implementation :: CPython\nClassifier: Programming Language :: Python :: Implementation :: PyPy\nClassifier: Topic :: Software Development :: Libraries\nClassifier: Topic :: Software Development :: Libraries :: Python Modules\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sprockets/sprockets.mixins.correlation.git", "keywords": "", "license": "Copyright (c) 2015-2019 AWeber Communications", "maintainer": "", "maintainer_email": "", "name": "sprockets.mixins.correlation", "package_url": "https://pypi.org/project/sprockets.mixins.correlation/", "platform": "", "project_url": "https://pypi.org/project/sprockets.mixins.correlation/", "project_urls": { "Homepage": "https://github.com/sprockets/sprockets.mixins.correlation.git" }, "release_url": "https://pypi.org/project/sprockets.mixins.correlation/2.0.1/", "requires_dist": [ "tornado (<7,>=4.3)" ], "requires_python": "", "summary": "Stuff to correlate requests, logs, and the like", "version": "2.0.1" }, "last_serial": 4970631, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c01296f0716c9c589daf0e1e7a166197", "sha256": "bbf4cca66907fdb5deb4ec7a02f1451f26a21e58a7a587a0f9748cb4d2bd20a2" }, "downloads": -1, "filename": "sprockets.mixins.correlation-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c01296f0716c9c589daf0e1e7a166197", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8777, "upload_time": "2015-03-31T20:55:21", "url": "https://files.pythonhosted.org/packages/8d/65/a5aa3654656899f79a3f9df30a433bf317a814e5e4e67786626e191544d6/sprockets.mixins.correlation-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cfa1a016325aa1df39ede566f1af533d", "sha256": "cc3b13664f0b2547c947a417a9f2a2d3bab276f0afcd22cd8d26b0036d4782d9" }, "downloads": -1, "filename": "sprockets.mixins.correlation-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cfa1a016325aa1df39ede566f1af533d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6456, "upload_time": "2015-03-31T20:55:18", "url": "https://files.pythonhosted.org/packages/e3/c8/7649b8951cdde46f32303fbbae62221ed67b797f5f60a1416c82db312f4b/sprockets.mixins.correlation-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f77c42436a880ae843dd0766696c3665", "sha256": "fef62d8eff5a9c5e8ec18599b0ca9cd9c882cfefc2e406784b68f42dd3d5abea" }, "downloads": -1, "filename": "sprockets.mixins.correlation-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f77c42436a880ae843dd0766696c3665", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8779, "upload_time": "2015-03-31T20:58:42", "url": "https://files.pythonhosted.org/packages/0f/38/6722ed3e121a3f18ee3adef5b702c50459955cf7497cf0deae73bb073e3d/sprockets.mixins.correlation-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f578be64135c69351374140a2449cdd", "sha256": "3383c1c13ac8cd9f7aa1b9b13c405985836e3bbb9fb64100cf0f95bbd4111a4d" }, "downloads": -1, "filename": "sprockets.mixins.correlation-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0f578be64135c69351374140a2449cdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6458, "upload_time": "2015-03-31T20:58:40", "url": "https://files.pythonhosted.org/packages/1c/95/8126eec84a2245df86003421a3e21cd8696f1836841b8627cfae28206661/sprockets.mixins.correlation-1.0.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "0fbf2fbe332d34276db8b6682f78da15", "sha256": "ef97c3f413124e470bf4a85b03dc747c2bc3e017b50b62ffeb5a95ea625f37fd" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0fbf2fbe332d34276db8b6682f78da15", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7566, "upload_time": "2018-11-26T21:30:05", "url": "https://files.pythonhosted.org/packages/62/18/a28b240f2714c77d1c016dcd48cff98a29842d851eb8abf529768216135c/sprockets.mixins.correlation-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5973f7bf81060546923773089eaa9d9e", "sha256": "2a238aa08889434962405f6e6b7c7572f31433cc0de632360688e3b2a1d1e9c7" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.0.tar.gz", "has_sig": false, "md5_digest": "5973f7bf81060546923773089eaa9d9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6852, "upload_time": "2018-11-26T21:30:06", "url": "https://files.pythonhosted.org/packages/94/7b/2d5a2a8cdae2a3cb648e4c944eeba9c1a9d9c3c7d0fad8245ad517790420/sprockets.mixins.correlation-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "e12a8a049f8f2e431f13fca99630e24d", "sha256": "6c87a0096a85650af870769cb557f056e1107b120ab34f9787b1043446903a73" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e12a8a049f8f2e431f13fca99630e24d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7584, "upload_time": "2019-03-22T00:38:07", "url": "https://files.pythonhosted.org/packages/81/8e/3a91ce9b9898c3b7c01a00f4ee4fa2bc040f990e0f04569caf4a567dec06/sprockets.mixins.correlation-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "940895a7ed986d747dd3e90f906f2b9c", "sha256": "2208f42051d745928293d620d29581836b7ccf568c3d869383211d86f2f2c2fa" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.1.tar.gz", "has_sig": false, "md5_digest": "940895a7ed986d747dd3e90f906f2b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7115, "upload_time": "2019-03-22T00:38:08", "url": "https://files.pythonhosted.org/packages/ff/52/c725c6e2172b7f07895cc5c73c7569e5d054339938389197036ae11527e0/sprockets.mixins.correlation-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e12a8a049f8f2e431f13fca99630e24d", "sha256": "6c87a0096a85650af870769cb557f056e1107b120ab34f9787b1043446903a73" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e12a8a049f8f2e431f13fca99630e24d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7584, "upload_time": "2019-03-22T00:38:07", "url": "https://files.pythonhosted.org/packages/81/8e/3a91ce9b9898c3b7c01a00f4ee4fa2bc040f990e0f04569caf4a567dec06/sprockets.mixins.correlation-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "940895a7ed986d747dd3e90f906f2b9c", "sha256": "2208f42051d745928293d620d29581836b7ccf568c3d869383211d86f2f2c2fa" }, "downloads": -1, "filename": "sprockets.mixins.correlation-2.0.1.tar.gz", "has_sig": false, "md5_digest": "940895a7ed986d747dd3e90f906f2b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7115, "upload_time": "2019-03-22T00:38:08", "url": "https://files.pythonhosted.org/packages/ff/52/c725c6e2172b7f07895cc5c73c7569e5d054339938389197036ae11527e0/sprockets.mixins.correlation-2.0.1.tar.gz" } ] }