decoupled-0.0.7
توضیحات
Run a python function (e.g., a test) in it's own process
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | decoupled-0.0.7 |
| نام | decoupled |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sören Glimm |
| ایمیل نویسنده | git@uncleowen.de |
| آدرس صفحه اصلی | https://gitlab.com/UncleOwen/decoupled |
| آدرس اینترنتی | https://pypi.org/project/decoupled/ |
| مجوز | - |
# decoupled
## Motivation
Imagine...
* You're developing a python extension OR
* You're writing some C or C++ code, but decided to add some python bindings
because you're more familiar with python unit testing libraries
Now this C/C++ code can fail in ways which Python code cannot.
It can cause a segfault and take your whole Python process down.
That means, that your testing library doesn't get to display it's results -
you don't get told which tests fail.
## The solution
decoupled runs your code in a separate process. If it crashes, this doesn't
take down the parent process. Instead, a ChildCrashedError is raised
in your parent process.
نحوه نصب
نصب پکیج whl decoupled-0.0.7:
pip install decoupled-0.0.7.whl
نصب پکیج tar.gz decoupled-0.0.7:
pip install decoupled-0.0.7.tar.gz