Calculate word counts in a text file!
Project description
pycounts_hm
Calculate word counts in a text file!
Installation
$ pip install pycounts_hm
Usage
pycounts
can be used to count words in a text file and plot results
as follows:
from pycounts_hm.pycounts_hm import count_words
from pycounts_hm.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_hm
was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.
Credits
pycounts_hm
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_hm-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pycounts_hm-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_hm-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70142ba0e749ac1df970d04f415d41736b7b1956e79ca91a6864452de896b6d4 |
|
MD5 | 75f39b3bb90d6268da050e7788014a16 |
|
BLAKE2b-256 | afaf2d65e640551648c9a70239bceabb35b5d0540c58f12acf023071718cef41 |
File details
Details for the file pycounts_hm-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_hm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e19a948abf17694093a49373d678200b13cf36eed8c66658727d84905864069 |
|
MD5 | c063230d0882c31adf68df21993ba8c8 |
|
BLAKE2b-256 | 145767f97c7863108aa995b144845ad12957cbece28659997a655d971bca5502 |