Skip to content

Class based implementation of thread local object

Notifications You must be signed in to change notification settings

Charnelx/thread_local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

thread_local

This module inspired by Flask, threading.local and werkzeug.local local object implementation.

See code:

https://github.com/python/cpython/blob/master/Lib/_threading_local.py

http://werkzeug.pocoo.org/docs/0.12/local

The module provides local context object with manager and proxy helpers. Local context object is a special object which defines globally providing ability to thread-safe access and manipulation with it attributes. CRUD operation set guarantied :)

E.g. you can use one generally global object with attribute values would be local and separated to each thread without any interference.

About

Class based implementation of thread local object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages