https://github.com/post2web/senv
in development do not use
https://github.com/post2web/senv
Last synced: 12 months ago
JSON representation
in development do not use
- Host: GitHub
- URL: https://github.com/post2web/senv
- Owner: post2web
- Created: 2016-02-01T22:36:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T17:38:59.000Z (over 10 years ago)
- Last Synced: 2025-02-03T23:42:28.921Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
shared environment
======
In development, do not use.
To install:
pip install git+git://github.com/post2web/senv@master
To use:
from senv.sdict import Sdict
# create shared dict
a = Sdict()
# use it just as you normally use dic
a['foo'] = 'bar'
# in another process
from senv.sdict import Sdict
a = Sdict()
print a
{'foo': 'bar'}
del a['foo']
# in the previous process
print a
{}