Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
|PyPI version| |Build Status| |codecov|
Run parallel jobs and save results to json.gz files.
Stable:
.. code:: sh
pip install ultrachronic
Latest:
.. code:: sh
pip install git+https://github.com/yoavram/ultrachronic.git
Supports Python 3.4 and 3.5.
Requirements:
.. code:: sh
pip install nose click
Run:
.. code:: sh
nosetests tests
Code in do_something.py
:
.. code:: 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:
.. code:: sh
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
.. |PyPI version| image:: https://badge.fury.io/py/ultrachronic.svg :target: https://badge.fury.io/py/ultrachronic .. |Build Status| image:: https://travis-ci.org/yoavram/ultrachronic.svg?branch=master :target: https://travis-ci.org/yoavram/ultrachronic .. |codecov| image:: https://codecov.io/gh/yoavram/ultrachronic/branch/master/graph/badge.svg :target: https://codecov.io/gh/yoavram/ultrachronic
FAQs
Run parallel jobs and save results to json.gz files
We found that ultrachronic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.