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.2.tar.gz (103.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cothread-2.18.2-py2.7-linux-x86_64.egg (149.7 kB view details)

Uploaded Egg

File details

Details for the file cothread-2.18.2.tar.gz.

File metadata

  • Download URL: cothread-2.18.2.tar.gz
  • Upload date:
  • Size: 103.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.46.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2

File hashes

Hashes for cothread-2.18.2.tar.gz
Algorithm Hash digest
SHA256 4661ca129d4f83a7651764419c2302272d9e1da96d011f6cc9d59532505e2dca
MD5 c5ad14dd809990b1c87305c0315add2a
BLAKE2b-256 b53b692ee1aa58349d10cb53c2dbd47fc0957aaea9c9565d2bdeaefb375f4f78

See more details on using hashes here.

File details

Details for the file cothread-2.18.2-py2.7-linux-x86_64.egg.

File metadata

  • Download URL: cothread-2.18.2-py2.7-linux-x86_64.egg
  • Upload date:
  • Size: 149.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.46.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2

File hashes

Hashes for cothread-2.18.2-py2.7-linux-x86_64.egg
Algorithm Hash digest
SHA256 419de647127b4ebfbc27f65b28257965113e6b393edae11b113398b09b13dfef
MD5 bc9068f33a97d60a6de28759a969e7d0
BLAKE2b-256 116c9b22348e4a92629ebd29b075f769c47d65f85c56086f908efa249490bc67

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