semvec/pypi-packages huggingface dataset:
naive-tester 1.2.1
A simple testing system based on files
License: MIT
Requires Python: >=3.6

# Naive Tester

[![PyPI version](https://badge.fury.io/py/naive-tester.svg)](https://badge.fury.io/py/naive-tester)

A simple testing system based on files. You provide a name of a script
to be tested and a folder containing files with arguments and reference
outputs. The app runs the script with the arguments from a file and compares
its result with that from the corresponding reference output file.
The following naming convention is applied:
each set of arguments is stored in the '.in' file, while the corresponding
output in the '.out' file, i.e., 'test_0.in' and 'test_0.out'.
Each pair must have identical names except for extensions.

## Installation
The Naive Tester can be installed from [PyPi](https://pypi.org/project/naive-tester/):
~~~
$ pip install naive-tester
~~~
The tester supports Python 3.6 and above. It is recommended to use virtual
environments for installation.

## How to use
Assume you created a python script some_app.py and want to test it. Your app
takes a string as an argument and outputs the length of that string to the console.
The application call might look like this:
~~~
$ python some_app.py input_string
$ 12
~~~
The first step is to prepare the tests, in this case, is to create a bunch of files.
Those with the '.in' extension must contain script arguments, i.e., 'input_string'
from the example above, and those with '.out' extension containing expected output,
i.e., '12'. The latter will be used for comparison with the script's output.
In other words, each pair of the files represents one test case.
~~~
some_app/
|
├── tests
|   ├── test_0.in
|   ├── test_0.out
|   ├── test_1.in
|   ├── test_1.out
|   ...
└── some_app.py
~~~
After the preparation step, you can run all the tests with the following command:
~~~
$ tester some_app.py tests
~~~
If you want the output to be more verbose, use the ```-v``` option:
~~~
$ tester -v some_app.py tests
~~~

Example outputs will be like the following:
~~~
Successfully run the some_app.py.
Elapsed time: 0.15s
Run of the some_app.py failed.
Elapsed time: 0.07s
~~~
or (for verbose option):
~~~
Successfully run the some_app.py. With arguments ['12345678'] got the output of 8.
Elapsed time: 0.15s
Failed run of the some_app.py with ['12345678']. The output should be 8, but got 7.
Elapsed time: 0.06s
~~~
It is possible to save the output to a file using a standard Linux technique:
~~~
$ tester some_app.py tests > test_report.txt
~~~

If your script has more than just one argument, then to use it with the naive-tester, you should list the arguments on new lines in the '.in' files.

## Release History
* 1.0.0
    * 1.0.1 Minor bug fixes
* 1.1.0 Added timer for each script execution; logging stream handler changed from `stderr` to `stdout`
* 1.2.0 Added support for multiple script arguments
    * 1.2.1 Added an option for the verbose output

## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/FilippSolovev/naive-tester/blob/master/LICENSE) file for details
pyrallel.lib 0.0.10
Yet another easy-to-use python3 parallel library for humans.
License: MIT

Pyrallel
========

.. begin-intro

Yet another easy-to-use python parallel library for humans.

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://raw.githubusercontent.com/usc-isi-i2/pyrallel/master/LICENSE
    :alt: License

.. image:: https://github.com/usc-isi-i2/pyrallel/workflows/Tests/badge.svg?branch=master
    :target: https://github.com/usc-isi-i2/pyrallel/actions
    :alt: Github actions

.. image:: https://coveralls.io/repos/github/usc-isi-i2/pyrallel/badge.svg?branch=master
    :target: https://coveralls.io/github/usc-isi-i2/pyrallel?branch=master
    :alt: Coveralls

.. image:: https://badge.fury.io/py/pyrallel.lib.svg
    :target: https://badge.fury.io/py/pyrallel.lib
    :alt: pypi

.. image:: https://readthedocs.org/projects/pyrallel/badge/?version=latest
    :target: http://pyrallel.readthedocs.io/en/latest
    :alt: Documents

- ParallelProcessor: Newbie-friendly process-based parallel computing api.
- MapReduce: Ultimately simple map and reduce computing model.
- ShmQueue: Extremely fast shared memory driven general purpose multiprocessing queue.

.. end-intro

Installation
------------
::

    pip install pyrallel.lib


Documentation
-------------

`Read the Doc <http://pyrallel.readthedocs.io>`_