loongson/pypi/: contextvars-2.4 metadata and description

Homepage Simple index

PEP 567 Backport

author MagicStack Inc
author_email hello@magic.io
classifiers
  • Development Status :: 3 - Alpha
  • Programming Language :: Python :: 3 :: Only
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.5
  • Operating System :: POSIX
  • Operating System :: MacOS :: MacOS X
  • Operating System :: Microsoft :: Windows
  • License :: OSI Approved :: Apache Software License
  • Intended Audience :: Developers
license Apache License, Version 2.0
platform
  • UNKNOWN
provides
  • contextvars
requires_dist
  • immutables (>=0.9)

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
contextvars-2.4-py3-none-any.whl
Size
7 KB
Type
Python Wheel
Python
3
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-09-07 09:23:23
contextvars-2.4.tar.gz
Size
10 KB
Type
Source
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-09-07 09:23:24
https://travis-ci.org/MagicStack/contextvars.svg?branch=master

PEP 567 Backport

This package implements a backport of Python 3.7 contextvars module (see PEP 567) for Python 3.6.

Important: at this moment this package does not provide an asyncio event loop with PEP 567 support yet. Stay tuned for updates.

Original “contextvars” Package

This package replaces the old “contextvars” PyPI package which repository is available here.

Documentation

Read the official contextvars module documentation here: https://docs.python.org/3.7/library/contextvars.html

PEP 567 also provides a comprehensive overview of the API and explains all design choices.

Installation

$ pip install contextvars

Usage

import contextvars

my_var = contextvars.ContextVar('my_var')

# ...

Listing as a Dependency

The good news is that the standard library always takes the precedence over site packages, so even if a local contextvars module is installed, the one from the standard library will be used. Therefore you can simply list “contextvars” in your requirements.txt or setup.py files.

Another option is to use “platform specific dependencies” setuptools feature:

import setuptools

setuptools.setup(
    name="Project",
    ...
    install_requires=[
        'contextvars;python_version<"3.7"'
    ]
)

License

Apache 2.0.