Coexist Context Manager
Run multiple code statements concurrently using a simple and Pythonic context manago
Features
- Execute multiple tasks in parallel with threads
- Simple with statement interface for easy use
- Collect tasks via lambdas or callable functions
- Configurable number of worker threads
- Waits for all tasks to complete before exiting the context
Installation
You can install this package via PIP: pip install python-coexist
Usage
from coexist import coexist
with coexist(max_workers=5) as ce:
ce(lambda: print('Hello'))
ce(lambda: print('World'))
Metadata
Release files for python-coexist 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_coexist-0.1.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_coexist-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / python_coexist-0.1.1.tar.gz
| Download URL | python_coexist-0.1.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b7cb5f596b5f969e73611468cfe26f69d031fb0834c95494a1546ed2fe6810a
|
|
BLAKE2b-256 checksum How to use checksums |
4cb2db89eaf45f1295a03b11a9749ea333e50690303ba53e70ae527b2558ad56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / python_coexist-0.1.1-py3-none-any.whl
| Download URL | python_coexist-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef21c83b2cb5c623e0e1342d2358584859303384e6bcebca4b20a71b7465fa78
|
|
BLAKE2b-256 checksum How to use checksums |
e235bfe32f75da7f1ca1d3208a454830db272fe0243e4f48a943bd3064dca36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|