Skip to main content

pycounts_lennonay

Calculate word counts in a text file!

Installation

$ pip install pycounts_lennonay

Usage

pycounts_lennonay can be used to count words in a text file and plot results as follows:

from pycounts_lennonay.pycounts_lennonay import count_words
from pycounts_lennonay.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

pycounts_lennonay was created by Lennon Au-Yeung. It is licensed under the terms of the MIT license.

Credits

pycounts_lennonay was created with cookiecutter and the py-pkgs-cookiecutter template.

Release files for pycounts-lennonay 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycounts-lennonay 0.1.0
File Size Uploaded
pycounts_lennonay-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycounts-lennonay 0.1.0
File Interpreter ABI Platform
pycounts_lennonay-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / pycounts_lennonay-0.1.0.tar.gz

Download URL pycounts_lennonay-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7fd9bdde8fee073674d7a64d66e823f3d2846a14b3a31ff0a8c8c1c29671c1ad
BLAKE2b-256 checksum
How to use checksums
a1512f62793d0a37fcdf3067dca605e9753e35347ac5609d9ee277330b25d7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.1 Darwin/21.6.0

Release files / pycounts_lennonay-0.1.0-py3-none-any.whl

Download URL pycounts_lennonay-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0280873fd3b4173fc515ddb070096d15afc91c6a43206a45392d89fcef069f8
BLAKE2b-256 checksum
How to use checksums
d0c32a86dbf74934ac0f377c67c11e43b175948b78f31c49564fcb0beb3ee52b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.1 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page