Calculate word counts in a text file!
Project description
pycounts
Calculate word counts in a text file!
Installation
pip install pycounts_aw
Usage
pycounts_aw can be used to count words in a text file and plot results
as follows:
from pycounts_aw.pycounts_aw import count_words
from pycount_aws.plotting_aw 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_aw was created by Alex Wong. It is licensed under the terms
of the MIT license.
Credits
pycounts_aw 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycounts_aw-0.1.0.tar.gz.
File metadata
- Download URL: pycounts_aw-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e885ec05b4db0a5641cea1af3f9486c15304488fea92db6e8475930b624fb653
|
|
| MD5 |
7bab66d187afe5ae37d1a465b98d9e5e
|
|
| BLAKE2b-256 |
26d5f14dba04b9eeb57c7d22da8aeed993b7b44ead54a488fa898fa2d4480c7a
|
File details
Details for the file pycounts_aw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycounts_aw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e3d08c1c7f6749894966126b6831e4e0fec29b1e8cdf006a88aad0fe48256d9
|
|
| MD5 |
5cb456b3ac0cc3e22bea5437f1c45905
|
|
| BLAKE2b-256 |
a624b28caad00413f4a4fd58426828d47a813950f1ebf89ded6407b0f5be194c
|