Skip to main content

Calculate word counts in a text file!

Project description

pycounts_tt25

Calculate word counts in a text file!

Installation

$ pip install pycounts_tt25

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_tt25 was created by Tiffany Timbers. It is licensed under the terms of the MIT license.

Credits

pycounts_tt25 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_tt25-0.2.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

pycounts_tt25-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycounts_tt25-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a58c037f2f732afbb45f1711b620ff0caf62d51666fae22946f5ede0646bf7cf
MD5 1a5405753c53a6b45ce03a910d0a9c19
BLAKE2b-256 ebef6b5e5fb5c50fbc9001c071ed46c4a81093fe162e0005c9eb53bd1de287a5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycounts_tt25-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b498ffba3e7823d8a6bd9b03cb9b5cd4b38b88e3eae5cba0e0471dabe3ca060
MD5 b0d6a1964e6423a44ca3541e068546d1
BLAKE2b-256 51867042059eb2842bf66b9e39d78566caa01b0555e7825db2bef994e470a183

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