A python package to count number of words in a file
Project description
my_py_counter
A python package to count number of words in a file
Installation
$ pip install my_py_counter
Usage
my_py_counter
can be used to count words in a text file and plot the results as follows:
from my_py_counter.my_py_counter import count_words
from my_py_counter.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
my_py_counter
was created by Kazeem Omoloja. It is licensed under the terms of the MIT license.
Credits
my_py_counter
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
my_py_counter-0.1.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for my_py_counter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f503e6d181591ce1d419d435dd9f084413879fb68de2e223343b32f70efe3b5 |
|
MD5 | 481622f6eefb6a02f7a0ad4f24c66f22 |
|
BLAKE2b-256 | 344fda3495359091aeb69e995da4480a8c526ecf2cdfc93b1d3222e938f55512 |