Calculate word counts in a text file!
Project description
pycountskhb
Calculate word counts in a text file!
Installation
$ pip install pycountskhb
Usage
pycounts
can be used to count words in a text file and plot results
as follows:
from pycountskhb.pycountskhb import count_words
from pycountskhb.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
pycountskhb
was created by Kristin Bunyan. It is licensed under the terms of the MIT license.
Credits
pycountskhb
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
pycountskhb-0.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file pycountskhb-0.1.0.tar.gz
.
File metadata
- Download URL: pycountskhb-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f836c5f6da3b4c25293d17fed03461e7ae8e61d919593491acfc58ab92d9c1 |
|
MD5 | 853f3bf6754a4c1d98ce41c29c674f47 |
|
BLAKE2b-256 | b56cc0f231aaf6e648da5ebbf3a3a51425d0c0af46d42ae7f32cd29e970a9e91 |
File details
Details for the file pycountskhb-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycountskhb-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.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24cfb08e2d827e94f7bb117d08d5c9b65aa65aaab91d44fb43c2dfb967774c7f |
|
MD5 | 391c29f06da51198936a4e6ea8074652 |
|
BLAKE2b-256 | e3c1aad1cd6cd702fb10602d56b7068b8ca368a7b92a02dc750376c6a774a234 |