Skip to main content

pycountss

Calculate word counts in a text file!

Installation

$ pip install pycountss

Usage

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

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

pycountss was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

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

Metadata

Release files for pycounts312tb 0.3.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 pycounts312tb 0.3.0
File Size Uploaded
pycounts312tb-0.3.0.tar.gz 85.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycounts312tb 0.3.0
File Interpreter ABI Platform
pycounts312tb-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 172.6 kB

Release files / pycounts312tb-0.3.0.tar.gz

Download URL pycounts312tb-0.3.0.tar.gz
Size 85.7 kB
Tags Source
SHA-256 checksum
How to use checksums
73982150942b2a023c36ee31aefa26fb1d7e43ce1b971f0f622c302a78f3acdb
BLAKE2b-256 checksum
How to use checksums
5aa5d9e493c091301bbbe10fbce54b550ef30d8fe40d52e81bc75649df3661fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / pycounts312tb-0.3.0-py3-none-any.whl

Download URL pycounts312tb-0.3.0-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9d707b85403f8de92f8fe890306f6cbf03aa3bccc3647c6430716a0bf7c7bf1
BLAKE2b-256 checksum
How to use checksums
8eee85d6aa1431b106188c4bbe247d321d82c7efadcf1b2a263720d67ccfd7a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.3.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