Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Run a python function (e.g., a test) in it's own process

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for decoupled, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size decoupled-0.0.3-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size decoupled-0.0.3.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page