Skip to main content

Add your description here

Project description

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

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

altogether-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

altogether-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for altogether-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39b437b0507f00421a62472cd9b2549edf31c1703234e70174c2165545920074
MD5 aa0e021b1a45d48e0d7e796b94730565
BLAKE2b-256 cf00007a088dec0952b38d762db67779e27249e12d393ebfce1d73cbe20d6064

See more details on using hashes here.

File details

Details for the file altogether-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for altogether-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d72827da4a6da602671ae7dc794963e4e9380f07171ec1e69f4ebf7c6d9bb0ba
MD5 ab30ebb529143418f05264ff1a235e72
BLAKE2b-256 40f121d86a17b8a94f876876889aad09db18a98626f07155a01ff1dd92ab694a

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