semvec/pypi-packages huggingface dataset:
matchmaker 0.1.4
Easy creation of hamcrest matchers


Decorators that simplify the creation of Hamcrest matchers.

From a function (with an optional appropriate docstring), create
hamcrest matchers with minimum extra coding.

The sources can be found in GitHub_.

.. _GitHub: https://github.com/txels/matchmaker/

Examples::

    from matchmaker import matcher

    @matcher
    def is_even(item):
        return item % 2 == 0

    @matcher
    def ends_like(item, data, length=3):
        "String whose last {1} chars match those for '{0}'"
        return item.endswith(data[-length:])

You can then use these in your tests as::

    assert_that(number, is_even())
    assert_that(word, ends_like(other_word, 4))

Errors will display as::

    AssertionError:
    Expected: Is even
         but: was <3>

    AssertionError:
    Expected: String whose last 4 chars match those for 'cello'
         but: was 'hullo'
clista 0.0.2
Create interactive web app from any CLI with streamlit
Requires Python: >=3.6

# clista - CLI to STreamlit App
Create interactive web app from any CLI with streamlit

## Status
Very early alpha version, tested only with `hey`.

## Install

```
pip install clista
```

## Why
There are different ways to do task "benchmark a website"

- Type the command to run it then copy the output and write to the report.
- Write a script to run the command 10 times then copy the output and write to the report.
- Learn Jupyter and run the command from there, export the notebook as Playbook and use as report.
- Write a webapp to run the command and display the result (take 2 months, and 5 people).
- Write a streamlit app and let who give the task run themselves, as they need.

## Use-cases
- Build one-time-used internal tool
- Build internal tool
- Build amazing tool (TODO later on this)

## Usage
### Example with hey
[`hey`](https://github.com/rakyll/hey) is a CLI HTTP load generator, like
`apache bench`.

```sh
$ hey 2>&1 | clista
Wrote stapp.py, please copy and edit as needed then run streamlit run stapp.py
NOTE: rerun would overwrite stapp.py

$ streamlit run stapp.py

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.100.4:8501
```

![orig](images/hey_orig.png)

Open `stapp.py`, removes undesired options and run to bench itself:

![orig](images/hey_edited.png)