semvec/pypi-packages huggingface dataset:
pycounts-tb 0.7.8
Calculate words  in a text file!
License: MIT
Requires Python: >=3.9,<4.0

# pycounts

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts
```

## Usage

`pycounts` can be used to count words in a text file and plot the results
as follows:

```python
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct.
By contributing to this project, you agree to abide by its terms.

## License

`pycounts` was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.

## Credits

`pycounts` was created with
[`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and
the `py-pkgs-cookiecutter`
[template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
pytest-typechecker 0.3.3
Run type checkers on specified test files
License: MIT
Requires Python: >=3.6
Keywords: pytest,unittest,type hinting,pyright,mypy

# pytest-typechecker

this is a plugin for pytest that allows you to create tests
that verify how a type checker responds to your code.

This currently supports these type checkers:

* pyright
* mypy

## File name format

this plugin looks for files starting with `test` and ending with `types.py` or `types_xfail.py`.
for example `test_something_types.py`

### global xfail

if you want to mark the hole test as `xfail` end it with `types_xfail.py`, for example.

```python
# test_wrong_types_xfail.py

x: 123 = "abc"
y: str = 123
```

### Only run specific checkers

if you include the name of a checker with `_` around it only those checkers will be run.
for example `test_recursion_pyright_types.py`

### xfail specific checkers

if you provide a `x` before the checker name, it will be run in xfail mode.
for example `test_recursion_xmypy_types.py` will run all checkers, but mark the mypy one as `xfail`

if you only want to run mypy and have it be xfail use this workaround: `test_recursion_mypy_types_xfail.py`

this can be combined, for example `test_recursion_pyright_xmypy_types.py` will run only pyright and mypy, but run mypy in xfail mode.

### dont run specific checkers

if you provide a `n` before the checker name, it will not be run.
for example `test_recursion_nmypy_types.py` will run all checkers, except mypy.