Skip to main content

Calculate word counts in a text file!

Project description

pycounts

Calculate word counts in a text file!

Installation

$ pip install pycounts-P138

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.

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_p138-0.1.1.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_p138-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_p138-0.1.1.tar.gz.

File metadata

  • Download URL: pycounts_p138-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.10 Windows/11

File hashes

Hashes for pycounts_p138-0.1.1.tar.gz
Algorithm Hash digest
SHA256 038d201bc8a2488caf7a06f6a96a38012fd76725451ae124e05c08e1861536b8
MD5 01799ce6efc8389dc09868c5b33441c0
BLAKE2b-256 c4b4c1dda80ddc5dd5c03cf70d6a7ce3286f5c8703a98a00ae4b0c7c961b035a

See more details on using hashes here.

File details

Details for the file pycounts_p138-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycounts_p138-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.10 Windows/11

File hashes

Hashes for pycounts_p138-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a421148dbc3784ee1433fa9840cbf42a52e8da69c3d933cf2e3c42dca4cfd16
MD5 abee684a8f97c2bb8823fa804ec1d034
BLAKE2b-256 9a6d5053a691b75956d35243d033645067d86d4bab5380485d1d71ff2fde2119

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