{ "info": { "author": "MagicStack Inc", "author_email": "hello@magic.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only" ], "description": ".. image:: https://travis-ci.org/MagicStack/contextvars.svg?branch=master\n :target: https://travis-ci.org/MagicStack/contextvars\n\n\nPEP 567 Backport\n================\n\nThis package implements a backport of Python 3.7 ``contextvars``\nmodule (see PEP 567) for Python 3.6.\n\n**Important:** at this moment this package does not provide an\nasyncio event loop with PEP 567 support yet. Stay tuned for updates.\n\n\nOriginal \"contextvars\" Package\n==============================\n\nThis package replaces the old \"contextvars\" PyPI package which\nrepository is available `here `_.\n\n\nDocumentation\n=============\n\nRead the official ``contextvars`` module documentation here:\nhttps://docs.python.org/3.7/library/contextvars.html\n\n\n`PEP 567 `_ also provides\na comprehensive overview of the API and explains all design choices.\n\n\nInstallation\n============\n\n.. code-block:: bash\n\n $ pip install contextvars\n\n\nUsage\n=====\n\n.. code-block:: python\n\n import contextvars\n\n my_var = contextvars.ContextVar('my_var')\n\n # ...\n\n\nListing as a Dependency\n=======================\n\nThe good news is that the standard library always takes the\nprecedence over site packages, so even if a local ``contextvars``\nmodule is installed, the one from the standard library will be used.\nTherefore you can simply list \"contextvars\" in your\n``requirements.txt`` or ``setup.py`` files.\n\nAnother option is to use `\"platform specific dependencies\"\n`_ setuptools feature:\n\n.. code-block:: python\n\n import setuptools\n\n setuptools.setup(\n name=\"Project\",\n ...\n install_requires=[\n 'contextvars;python_version<\"3.7\"'\n ]\n )\n\n\nLicense\n=======\n\nApache 2.0.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/MagicStack/contextvars", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "contextvars", "package_url": "https://pypi.org/project/contextvars/", "platform": "", "project_url": "https://pypi.org/project/contextvars/", "project_urls": { "Homepage": "http://github.com/MagicStack/contextvars" }, "release_url": "https://pypi.org/project/contextvars/2.4/", "requires_dist": null, "requires_python": "", "summary": "PEP 567 Backport", "version": "2.4" }, "last_serial": 5022507, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "9a0d2b271d01d091342dd233e052d269", "sha256": "b25ae5fc4749f3690f1a0d546d79fa96f3f6a68da6157199d6b16ef426d364a6" }, "downloads": -1, "filename": "contextvars-1.0-py2.7.egg", "has_sig": false, "md5_digest": "9a0d2b271d01d091342dd233e052d269", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3723, "upload_time": "2012-06-14T17:42:14", "url": "https://files.pythonhosted.org/packages/c9/ce/330dc2868422ebf91101d2825f3546220b25447c506369d318d86dcca048/contextvars-1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "08164c297f3b4dd1198ba96b53c69bc6", "sha256": "e93632518ef4fb16ec26fa14af8c1d9f302de5ecf047698b31663ffe2204ca1c" }, "downloads": -1, "filename": "contextvars-1.0.tar.gz", "has_sig": false, "md5_digest": "08164c297f3b4dd1198ba96b53c69bc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1677, "upload_time": "2012-06-14T17:42:02", "url": "https://files.pythonhosted.org/packages/84/3b/25821a272579173f2a782b35a5990f5b8c592e3082a21e6fe4d658e9e588/contextvars-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "7b2d37f14beef5bb65db188a02749bfa", "sha256": "5b2f1f8fb9e8dd241c18c85b7eef99146fcae695253c361d89b68d6cda8426c4" }, "downloads": -1, "filename": "contextvars-2.0.tar.gz", "has_sig": false, "md5_digest": "7b2d37f14beef5bb65db188a02749bfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9567, "upload_time": "2018-03-21T16:03:43", "url": "https://files.pythonhosted.org/packages/a3/4d/5a2bb7c683c8edc2711011c23b2aac855b39e8eaa8a9f730f57dde77792a/contextvars-2.0.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "166eaede93b82b19599f542a0e6e4e97", "sha256": "e9f9c5763d5a2afa6e420218e53954bd3829fc2d8acd806b98139d28c362cdf9" }, "downloads": -1, "filename": "contextvars-2.1.tar.gz", "has_sig": false, "md5_digest": "166eaede93b82b19599f542a0e6e4e97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9609, "upload_time": "2018-03-21T17:18:34", "url": "https://files.pythonhosted.org/packages/84/8e/228d706681b433289228be8951f889a1b29a18386a15712c327fb9fdd866/contextvars-2.1.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "8bb81a5b91a6e91cc018d7f681ae217b", "sha256": "7d73f8b1426cf0200fbe16900fcd73c9be29c54546b48a3980727e670b1acb10" }, "downloads": -1, "filename": "contextvars-2.2.tar.gz", "has_sig": false, "md5_digest": "8bb81a5b91a6e91cc018d7f681ae217b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9559, "upload_time": "2018-05-02T17:00:03", "url": "https://files.pythonhosted.org/packages/6b/1b/bc1871b808e06f822d7f8ab7a415e982b18c55791c899040426fade365bf/contextvars-2.2.tar.gz" } ], "2.3": [ { "comment_text": "", "digests": { "md5": "e933c76bb4ff3675e472bb315efae194", "sha256": "2341042e1c03a271813e07dba29b6b60fa85c1005ea5ed1638a076cf50b4d625" }, "downloads": -1, "filename": "contextvars-2.3.tar.gz", "has_sig": false, "md5_digest": "e933c76bb4ff3675e472bb315efae194", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9565, "upload_time": "2018-07-30T15:40:44", "url": "https://files.pythonhosted.org/packages/28/01/3c237e3975afded3038d5eacb80646d919c008fb05d25b36cd25495c5467/contextvars-2.3.tar.gz" } ], "2.4": [ { "comment_text": "", "digests": { "md5": "5907c5c866d9ac75563c90b0b7953b04", "sha256": "f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e" }, "downloads": -1, "filename": "contextvars-2.4.tar.gz", "has_sig": false, "md5_digest": "5907c5c866d9ac75563c90b0b7953b04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9570, "upload_time": "2019-04-01T14:42:11", "url": "https://files.pythonhosted.org/packages/83/96/55b82d9f13763be9d672622e1b8106c85acb83edd7cc2fa5bc67cd9877e9/contextvars-2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5907c5c866d9ac75563c90b0b7953b04", "sha256": "f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e" }, "downloads": -1, "filename": "contextvars-2.4.tar.gz", "has_sig": false, "md5_digest": "5907c5c866d9ac75563c90b0b7953b04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9570, "upload_time": "2019-04-01T14:42:11", "url": "https://files.pythonhosted.org/packages/83/96/55b82d9f13763be9d672622e1b8106c85acb83edd7cc2fa5bc67cd9877e9/contextvars-2.4.tar.gz" } ] }