semvec/pypi-packages huggingface dataset:
mypy-test 0.1.4
Test mypy plugins, stubs, custom types.
License: MIT
Requires Python: >=3.6
Keywords: mypy,testing,stubs,plugins,typing

# mypy_test

Test [mypy](https://mypy.readthedocs.io/en/stable/) plugins, stubs, custom types.

Create a Python file, add comments to lines where you expect mypy to produce an error, run `mypy_test`, and it will check if actual errors are the same as you expect.

Features:

+ **Flexible**: supports every feature supported by mypy, does not enforce a project structure.
+ **Fast**: mypy gets run only once for all files at once. Also, no patching, no config generation.
+ **Easy to learn**: run `mypy_test` with the same arguments as you would run mypy, and it just works.
+ **Lightweight**: no dependencies except mypy.

```bash
python3 -m pip install mypy-test
```

## Usage

1. Write a file you want to test, add comments to the lines you expect to fail:

    ```python
    a = 1
    reveal_type(a)  # R: builtins.int
    ```

2. Run the tool:

    ```bash
    python3 -m mypy_test example.py
    ```

## Writing the comments

+ The comments have the following format: `SEVERITY: MESSAGE`.
+ Severity is a one-letter violation severity as reported by mypy.
  + `F` for "fatal"
  + `E` for "error"
  + `W` for "warning"
  + `N` for "note"
  + `R` is a shorthand for `N: Revealed type is "..."`
+ Comment can be on the same line as the violation or on the line before.

Example:

```python
var = 1.1
reveal_type(var)  # R: builtins.float

# E: Incompatible types in assignment (expression has type "str", variable has type "float")
var = ""
```

Tips:

+ The fastest way to know the severity and the message is to run `mypy_test` on the code and then copy-paste the resulting message.
+ Make separate functions for every test case, so it can have a nice description and a clean namespace.
+ Place all test files into one directory. For example, `/types/` or `/tests/types/`.

## Alternatives

+ [pytest-mypy-plugins](https://github.com/typeddjango/pytest-mypy-plugins) - pytest plugin, test cases described in a YAML file.
+ [pytest-mypy-testing](https://github.com/davidfritzsche/pytest-mypy-testing) - pytest plugin, tests are described like pytest test cases (but they actually don't get run).
pyllelize 0.2.1
A library offers streamlined utilities to simplify the parallelization of Python functions
License: MIT
Requires Python: >=3.9,<4.0

# Pyllelize

Easily parallelize your Python functions with `pyllelize`. Whether you're dealing with CPU-bound tasks or I/O-bound asynchronous functions, `pyllelize` offers a simple interface to distribute your workload efficiently.

## Key Features

- **Thread-based Parallelization**: Distribute CPU-bound tasks across multiple threads with ease.
  
- **Process-based Parallelization**: Harness the full power of multi-core processors by distributing tasks across separate processes, bypassing Python's Global Interpreter Lock.
  
- **Asynchronous Execution**: Seamlessly parallelize I/O-bound asynchronous tasks.
  
- **Error Handling**: Safely capture and report errors without halting the execution of other tasks.

## Installation

```bash
pip install pyllelize
```

## Quick Start

### Thread-based Execution

```python
from pyllelize import parallel_execute_threads

def multiply(a, b):
    return a * b

arguments = [(1, 2), (3, 4), (5, 6)]
results = parallel_execute_threads(multiply, arguments)
print(results)  # Possible output: [2, 12, 30]
```

### Process-based Execution

```python
from pyllelize import parallel_execute_processes

def add(a, b):
    return a + b

arguments = [(1, 2), (3, 4), (5, 6)]
results = parallel_execute_processes(add, arguments)
print(results)  # Possible output: [3, 7, 11]
```

### Asynchronous Execution

```python
import asyncio
from pyllelize import parallel_execute_threads_async

async def fetch_data(a, b):
    await asyncio.sleep(1)  # Simulating async I/O operation
    return a + b

arguments = [(1, 2), (3, 4), (5, 6)]
results = parallel_execute_threads_async(fetch_data, arguments)
print(results)  # Possible output after 1 second: [3, 7, 11]
```

## License

This project is licensed under the [MIT License](link-to-license-file).
ledger-cli 0.1.4
ledger-cli
License: MIT
Requires Python: >=3.11,<4.0

# ledger-cli

[![PyPI](https://img.shields.io/pypi/v/ledger-cli.svg)][pypi_]
[![Status](https://img.shields.io/pypi/status/ledger-cli.svg)][status]
[![Python Version](https://img.shields.io/pypi/pyversions/ledger-cli)][python version]
[![License](https://img.shields.io/pypi/l/ledger-cli)][license]

[![Read the documentation at https://ledger-cli.readthedocs.io/](https://img.shields.io/readthedocs/ledger-cli/latest.svg?label=Read%20the%20Docs)][read the docs]
[![Tests](https://github.com/tilschuenemann/ledger-cli/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/tilschuenemann/ledger-cli/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi_]: https://pypi.org/project/ledger-cli/
[status]: https://pypi.org/project/ledger-cli/
[python version]: https://pypi.org/project/ledger-cli
[read the docs]: https://ledger-cli.readthedocs.io/
[tests]: https://github.com/tilschuenemann/ledger-cli/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/tilschuenemann/ledger-cli
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

ledger-cli strives to achieve two goals regarding your personal finance:

1. Providing you with an easy format for fine-tuning your transactions.
2. Serving a local dashboard for easy analysis and interpration.

## Installation

You can install _ledger-cli_ via [pip] from [PyPI]:

```console
$ pip install ledger-cli
```

## Usage

Please see the [Command-line Reference] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_ledger-cli_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter] template.

[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/tilschuenemann/ledger-cli/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/tilschuenemann/ledger-cli/blob/main/LICENSE
[contributor guide]: https://github.com/tilschuenemann/ledger-cli/blob/main/CONTRIBUTING.md
[command-line reference]: https://ledger-cli.readthedocs.io/en/latest/usage.html