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
Built Distribution
File details
Details for the file my_py_counter-0.1.0.tar.gz
.
File metadata
- Download URL: my_py_counter-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.10 Linux/5.11.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673801d82badd88a53e41a6308d86e5118afe355d1808796524f6d6a3dbb0b87 |
|
MD5 | d79f5df78331d004f78e86f8c5d7df51 |
|
BLAKE2b-256 | cd771ac2db4dc9069eb70f5906985dcaa25af4f0bd2e389293d90714cce33804 |
File details
Details for the file my_py_counter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: my_py_counter-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.1.11 CPython/3.8.10 Linux/5.11.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f503e6d181591ce1d419d435dd9f084413879fb68de2e223343b32f70efe3b5 |
|
MD5 | 481622f6eefb6a02f7a0ad4f24c66f22 |
|
BLAKE2b-256 | 344fda3495359091aeb69e995da4480a8c526ecf2cdfc93b1d3222e938f55512 |