semvec/pypi-packages huggingface dataset:
pycounts_rbattu 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9

# 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 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).
pycounts_olliegullery 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9

# pycounts_olliegullery

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts_olliegullery
```

## Usage

- TODO

## 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_olliegullery` was created by Oliver Gullery. It is licensed under the terms of the MIT license.

## Credits

`pycounts_olliegullery` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
restartprocwithvars 0.10
Restarts process (Windows only)
License: MIT
Keywords: restart, windows


# Restarts process (Windows only)

## Tested against Windows / Python 3.11 / Anaconda

### pip install restartprocwithvars

```py
from restartprocwithvars import (
    set_console_ctrl_handler,
    newstartwhenctrlc,
    disable_restart_proc,
)
from time import sleep
from functools import partial
import sys

disable_restart_proc(
    "ctrl+alt+w",
)
set_console_ctrl_handler(
    returncode=1,
    func=partial(
        newstartwhenctrlc,
        sleeptime=30,
        sleep_before_restart=5,
        sleep_after_exit=5,
        pythonexe=sys.executable,
    ),
)
while True:
    sleep(1)
    print("test")
sleep(10)


# def _switch_restart_proc():
#     """
#     Toggle the value of config.restart_proc and print the updated status.
#     """

# def disable_restart_proc(disable_shortcut):
#     """
#     Function to disable the restart process with a specified shortcut.

#     :param disable_shortcut: str - The shortcut used to disable the restart process.
#     :return: None
#     """

# def newstartwhenctrlc(*args, **kwargs):
#     """
#     A function to handle the behavior when Ctrl+C is pressed. It checks if a process needs to be restarted, then generates a batch file for the restart process with necessary environment variables and commands. Finally, it starts the batch file in a new subprocess and exits the current process.
#     """
```
ccpycounts 0.1.0
Calculate word counts in a text file
License: MIT
Requires Python: >=3.9

# ccpycounts

Calculate word counts in a text file

## Installation

```bash
$ pip install ccpycounts
```

## Usage
`ccpycounts` can be used to count words in a text file and plot results
as follows:

```python
from ccpycounts.ccpycounts import count_words
from ccpycounts.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

`ccpycounts` was created by Caden Chan. It is licensed under the terms of the MIT license.

## Credits

`ccpycounts` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).