altogether
Promise.all for Python (sorta)
- Python Native (zero dependency)
- Simple API (
with altogether:) - Automatic parallelization
- Support for both async and blocking functions
If you have this:
for i in range(100):
sleep_one_second(i) # Total: 100 * 0.1 = 10 seconds
Just:
with altogether:
for i in range(100):
altogether.add(time.sleep, 0.1, i)
await altogether.all()
And get instant parallized speed up.
Installation
pip install altogether
Note
If possible, use the async version. The sync version is a simple 'patch' to speed up IO-bound tasks that will not be impacted by GIL due to its use of threads.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
altogether-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file altogether-0.1.0.tar.gz.
File metadata
- Download URL: altogether-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39b437b0507f00421a62472cd9b2549edf31c1703234e70174c2165545920074
|
|
| MD5 |
aa0e021b1a45d48e0d7e796b94730565
|
|
| BLAKE2b-256 |
cf00007a088dec0952b38d762db67779e27249e12d393ebfce1d73cbe20d6064
|
File details
Details for the file altogether-0.1.0-py3-none-any.whl.
File metadata
- Download URL: altogether-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72827da4a6da602671ae7dc794963e4e9380f07171ec1e69f4ebf7c6d9bb0ba
|
|
| MD5 |
ab30ebb529143418f05264ff1a235e72
|
|
| BLAKE2b-256 |
40f121d86a17b8a94f876876889aad09db18a98626f07155a01ff1dd92ab694a
|