None
Project description
cleanroom
Install:
pip install cleanroom
Create instance in a new process and proxy all operations:
import os
from cleanroom import create_instance
class Cal:
def __init__(self, base):
self.base = base
def inc(self):
self.base += 1
return self.base
def pid(self):
return os.getpid()
cal = create_instance(Cal, 0)
print('Parent PID: ', os.getpid())
print('Cal PID: ', cal.pid())
print('inc: ', cal.inc())
print('inc: ', cal.inc())
Output:
Parent PID: 22239 Cal PID: 22272 inc: 1 inc: 2
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2019-05-10)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cleanroom-0.2.6.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for cleanroom-0.2.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7cec73ebc9f504ce976669f921f3f75881d3ded83170df612dfee40c32d8901 |
|
MD5 | b257b36a07cbc4d4f0555ee2364036f2 |
|
BLAKE2b-256 | 8d026586c73e57ad33002fd79a71f32f4f413ba15a2bc6e851a62b7b8f97d728 |