Skip to main content

pycounts

Calculate word counts in a text file!

Installation

$ pip install pycounts

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

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

Credits

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

Metadata

Release files for pycounts-vf 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-vf 0.1.0
File Size Uploaded
pycounts_vf-0.1.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / pycounts_vf-0.1.0.tar.gz

Download URL pycounts_vf-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2e9f739c6dc186c0e875c51301c7b4d383d8e0b9ffaff695a09d356234b43ca1
BLAKE2b-256 checksum
How to use checksums
b58075a6b76a3d8806bebf2d95e3cab7bcc3523c69200e2f5919252312d6eb7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Darwin/21.0.1

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

Download URL pycounts_vf-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a66c42d6d8da227a751aeaca807d0d8c5d0b27d52606a20a4a4c8bdb87e1df99
BLAKE2b-256 checksum
How to use checksums
0e614184236078295beca73ebfb9a7a1ae8207e655e61092d71f9d0b58bb8db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Darwin/21.0.1

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