Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

contextvars is a great module. Let's make it compatible to Python 3.5+.

License

NotificationsYou must be signed in to change notification settings

vbe0201/better-contextvars

Repository files navigation

https://travis-ci.com/itsVale/better-contextvars.svg?branch=masterhttps://api.codacy.com/project/badge/Grade/0a4eb517bdcd4618947bfa56e73e1282https://api.codacy.com/project/badge/Coverage/0a4eb517bdcd4618947bfa56e73e1282https://api.codeclimate.com/v1/badges/20552710af9220ac17c2/maintainability

About this project

This project implements a backport of thePEP 567 contextvars module from Python 3.7 for Python 3.5+.It is a full implementation of the original contextvars module with the same features.

Installation

Installation is very easy. Either install it from PyPI or directly from GitHub:

$ pip3 install -U better-contextvars$ pip3 install -U git+https://github.com/itsVale/better-contextvars#egg=better-contextvars$ git clone https://github.com/itsVale/better-contextvars$ python3 setup.py install

Documentation

As stated above, this is an exact representation of the original contextvars module.Because of that, it is totally fine to use theofficial documentation for contextvars.

PEP 567 provides a comprehensive overview of the API.

Usage

You use it the same way as the original module.

importbetter_contextvarsascontextvarsvar=contextvars.ContextVar('test')...

For more usage examples, have a look attests.

Contributing

If you decide to contribute, please always lint your code. The preferred linter ispylama.

About

contextvars is a great module. Let's make it compatible to Python 3.5+.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp