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.
Metadata
Release files for pycounts_aw 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycounts_aw-0.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_aw-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / pycounts_aw-0.1.0.tar.gz
| Download URL | pycounts_aw-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e885ec05b4db0a5641cea1af3f9486c15304488fea92db6e8475930b624fb653
|
|
BLAKE2b-256 checksum How to use checksums |
26d5f14dba04b9eeb57c7d22da8aeed993b7b44ead54a488fa898fa2d4480c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Darwin/23.3.0
|
Release files / pycounts_aw-0.1.0-py3-none-any.whl
| Download URL | pycounts_aw-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e3d08c1c7f6749894966126b6831e4e0fec29b1e8cdf006a88aad0fe48256d9
|
|
BLAKE2b-256 checksum How to use checksums |
a624b28caad00413f4a4fd58426828d47a813950f1ebf89ded6407b0f5be194c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Darwin/23.3.0
|