Skip to main content

Calculate word counts in a text file and plot word counts

Project description

pycounts_jd25

codecov

Calculate word counts in a text file!

Author:Julian Daduica

Year: 2025

Installation

$ pip install pycounts_jd25

Usage

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

from pycounts_jd25.pycounts_jd25 import count_words
from pycounts_jd25.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_jd25 was created by Julian Daduica. It is licensed under the terms of the MIT license.

Credits

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycounts_jd25-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycounts_jd25-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_jd25-0.2.0.tar.gz.

File metadata

  • Download URL: pycounts_jd25-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts_jd25-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6b845c0dbb5c860e80d84c9dd8b04b4c493b678f2400f0d52465ca7e371ca08b
MD5 6288fc769599bb979fdfc891823957c9
BLAKE2b-256 a45339aef5d1dda6758eb70daa598003d2b81a20afd6ec392fc78780924be36e

See more details on using hashes here.

File details

Details for the file pycounts_jd25-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pycounts_jd25-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts_jd25-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 241b1fe4b60ed3e5930d72ce9a2cb453317619e093ffca4b5adac2f1cddf0184
MD5 1ec09cbe2d71d7f8a937c05df8b5b15c
BLAKE2b-256 ac7996cb7c3e13d0ddab59ab95da2010c464c7af7b99dad26b3da9aea34bdda1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page