A word count calculator
Project description
Installation
$ pip install pycounts_rory
Usage
pycounts_rory
can be used to count words in a text file and plot results as follows:
from pycounts_rory.pycounts_rory import count_words
from pycounts_rory.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_rory
was created by Rory White. It is licensed under the terms of the MIT license.
Credits
pycounts_rory
was created with
cookiecutter
and
the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycounts_rory-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file pycounts_rory-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_rory-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96cba5086fa35f6ea1e6310c4a637d1cf5a4e0eba0a722038ce00f66b9062e1 |
|
MD5 | 7d325975fb8a8c69963160b3c6e903bb |
|
BLAKE2b-256 | 1342f60f03c31a0539f0679e95eaf6dc58f0bdbd5491848bf55ed0c86b9088bf |
File details
Details for the file pycounts_rory-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_rory-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00501e921c0fbf0ccee7d304bb1e84ef50fb93113763daa999ca28f7355159b9 |
|
MD5 | 00f3313939bbc26f6edf0f0b77ab0336 |
|
BLAKE2b-256 | 00ef4797cd604144b9653a1a5a690a587c323ddc4bc29984c105ee0c2e14c7d6 |