Skip to main content

Cooperative threading based utilities

Project description

Build Status Test coverage Latest PyPI version Documentation Status

cothread

The cothread Python library is designed for building tools using cooperative threading. This means that, with care, programs can effectively run several tasks simultaneously.

The cothread.catools library is designed to support easy channel access from Python, and makes essential use of the features of cooperative threads – in particular, catools.camonitor() notifies updates in the background.

See the documentation for more details.

Installation

To install the latest release, type:

pip install cothread

To install the latest code directly from source, type:

pip install git+git://github.com/dls-controls/cothread

Documentation

Full documentation is available at http://cothread.readthedocs.org

Upload to PyPI

Run the following commands to create a virtual environment, build cothread, do a test upload to test.pypi.org, and finally upload it to PyPi.

Ask a member of dls-controls for the username and password to use:

pipenv install numpy twine build
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) pipenv run python -m build --sdist
pipenv run twine upload -r testpypi dist/*
pipenv run twine upload dist/*

We set SOURCE_DATE_EPOCH from git commit for reproducible builds - see https://reproducible-builds.org/

License

GPL2 License (see COPYING)

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

cothread-2.18.1.tar.gz (103.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page