Skip to main content

gevent-cooperative child processes and inter-process communication.

Project description

Changelog | gipc @ PyPI | gipc @ GitHub

Overview

gipc (pronunciation as in “gipsy”) enables reliable child process management and non-blocking inter-process communication in gevent-driven software projects.

Using Python’s multiprocessing package in the context of a codebase that also uses gevent is error-prone and may break the application in various subtle ways. With gipc, multiprocessing.Process-based child processes can safely be created anywhere within your gevent-powered application. The API of multiprocessing.Process objects is provided in a gevent-cooperative way. Also, gipc provides a pipe-based transport layer for gevent-cooperative inter-greenlet and inter-process communication. gipc is lightweight and easy to integrate.

From 2012 to 2018 gipc’s home was at bitbucket.org/jgehrcke/gipc. Since then development has continued on GitHub.

Code examples

Individual example programs can be found in the examples directory.

Documentation

Visit https://gehrcke.de/gipc for installation instructions, API docs, code examples, and in-depth information.

Platform support

The current version of gipc works on CPython 3.6 through 3.10. It supports gevent versions 1.5 and newer and supports both, Unix-like systems as well as Windows. On Linux and macOS, gipc also works with PyPy.

gipc’s continuous integration (CI) pipeline automatically executes a wide range of tests on Linux, Darwin (macOS), and Windows.

Who uses it?

Are you using gipc in your project? Please drop me a line!

How to run the tests?

gipc’s tests are written for pytest. With the repository’s root directory being the current working directory you can run the tests like this:

$ pip install -r requirements-tests.txt
$ cd test && pytest -vv --cov-report term --cov-report html --cov gipc

Contact & help

Your feedback and questions are highly appreciated. Please contact me via mail at jgehrcke@googlemail.com or use the GitHub issue tracker.

Author & license

gipc is written and maintained by Jan-Philip Gehrcke. It is licensed under the MIT license (see LICENSE file).

I am thankful for all contributions (bug reports, code, great questions) from:

  • Guy Rozendorn

  • John Ricklefs

  • Heungsub Lee

  • Alex Besogonov

  • Jonathan Kamens

  • Akhil Acharya

  • John Porter

  • James Addison

  • Oliver Margetts

  • … and others

Project details


Download files

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

Source Distribution

gipc-1.4.0.tar.gz (65.6 kB view details)

Uploaded Source

File details

Details for the file gipc-1.4.0.tar.gz.

File metadata

  • Download URL: gipc-1.4.0.tar.gz
  • Upload date:
  • Size: 65.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.8.2 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for gipc-1.4.0.tar.gz
Algorithm Hash digest
SHA256 3fc776188c450001de5e35e0231286c1a8621f54d6ffd7c4f95d1ff516b9e30a
MD5 b61a6d36a4d52d268b48857ac1ae91f7
BLAKE2b-256 77f2db598e25d49811c73533afbaf4d0f531fcd970b717d36c8439e534b6f74c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page