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.5.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for cleanroom-0.2.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526d878be863fd75e6e8eac9e6082cf55a8fd504b6ac05513b6e4fd776bc9b88 |
|
MD5 | 6bd2c51b6f8a83078a6316b43de7731d |
|
BLAKE2b-256 | 314eeea39352a33aca9ed05334b135c3a1d59db434aac9c20dde9abd7d8ccab3 |