Skip to main content

PyPI version Build Status codecov

Run parallel jobs and save results to json.gz files.

Install

Stable:

pip install ultrachronic

Latest:

pip install git+https://github.com/yoavram/ultrachronic.git

Supports Python 3.4 and 3.5.

Test

Requirements:

pip install nose click

Run:

nosetests tests

Example

Code in do_something.py:

from ultrachronic import jsonify_result, repeat

import click

@jsonify_result
def do_something(arg1, arg2):
    a = 1
    b = 2
    # must return a dict!
    return dict(a=a, b=b)

@click.command()
@click.option('--arg1', default=1, type=int, help='Argument 1')
@click.option('--arg2', default='a', type=str, help='Argument 2')
@click.option('--reps', default=1, type=click.IntRange(1, None), help='Number of repetitions')
@click.option('--cpus', default=1, type=int, help='Number of CPUs to use (<1 for all available)')
def main(arg1, arg2, reps, cpus):
    repeat(do_something, reps, cpus, arg1=arg1, arg2=arg2)

if __name__ == '__main__':
    main()

Usage:

python do_something.py
python do_something.py --reps 10 --cpus 2
python do_something.py --arg1 5 --reps 10 --cpus 1
python do_something.py --arg2 hi --reps 10 --cpus 0

Authors

  • Yoav Ram (@yoavram)

Release files for ultrachronic 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ultrachronic 0.1.5
File Size Uploaded
ultrachronic-0.1.5.tar.gz 19.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ultrachronic 0.1.5
File
ultrachronic-0.1.5-py3.6.egg Legacy Egg format - - Details
ultrachronic-0.1.5-py3.5.egg Legacy Egg format - - Details
ultrachronic-0.1.5-py3.4.egg Legacy Egg format - - Details
ultrachronic-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 42.4 kB

Release files / ultrachronic-0.1.5.tar.gz

Download URL ultrachronic-0.1.5.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bbb76a46303d7e9e9c45ac8e57c5f60ff8bcdf561ec40ed77a180b69f0c0b5a1
BLAKE2b-256 checksum
How to use checksums
8c9f4052a23c9726f3c9f714b6d72f22516825b659991e14a9e6bc508a55354f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ultrachronic-0.1.5-py3.6.egg

Download URL ultrachronic-0.1.5-py3.6.egg
Size 5.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
9bb31c24d1dd97a2a2035588424807904302db9eac3c3d081257f4fbaeb1e08f
BLAKE2b-256 checksum
How to use checksums
42128ef41e485670ab9c42a746548fc3ebb274c9d1396b80b38758289732c1da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ultrachronic-0.1.5-py3.5.egg

Download URL ultrachronic-0.1.5-py3.5.egg
Size 5.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
5280946a3c26b86c8cfcfcb150ccd12cbe2da555513e3ad261e98c1d743ad08b
BLAKE2b-256 checksum
How to use checksums
a681656e983f559b9f1cabb5875dddb5fc2c32b97725387783f115628150d283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ultrachronic-0.1.5-py3.4.egg

Download URL ultrachronic-0.1.5-py3.4.egg
Size 5.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
a47382904a88b4afc996511b32443ca7a98baeacc21f14daf4e8ab0c4a36e68e
BLAKE2b-256 checksum
How to use checksums
f7bce96719656b272d36c9c8fac5be186d7e9535b1dde1ae992828b7626421a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ultrachronic-0.1.5-py2.py3-none-any.whl

Download URL ultrachronic-0.1.5-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b85d6943431dc9604a17cb6c5530251a508e3f55b802bbf3b2877113a63d4c87
BLAKE2b-256 checksum
How to use checksums
c24a85fc6cfbad2fe5158385bf1c3c6245cb79e4f8ba609ca890b88482e45bd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page