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

Usage

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

from pycounts_jlee2843.pycounts_jlee2843 import count_words
from pycounts_jlee2843.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_jlee2843 was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts_jlee2843 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_jlee2843-0.1.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_jlee2843-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_jlee2843-0.1.0.tar.gz.

File metadata

  • Download URL: pycounts_jlee2843-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/23.2.0

File hashes

Hashes for pycounts_jlee2843-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02b0d99e1307138623c6b5125fc06b1d0af99bada753aeafb51dcc75768e62fe
MD5 1491966637439e96f521397a73db4f1a
BLAKE2b-256 3b82645ef924bf763a032f4e8eb315adbd273756ee6c2df7280e4ce0f076de21

See more details on using hashes here.

File details

Details for the file pycounts_jlee2843-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycounts_jlee2843-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/23.2.0

File hashes

Hashes for pycounts_jlee2843-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7204b61f5a2a50b48aa2a466dc3b645c00dadea4d6c2d3fc8e46c64facacd097
MD5 dda6b689c27893e29bb70f564e6b1e31
BLAKE2b-256 5f2b72d2f7b7306ff1dc333da87d9d8e1ce6bb32865444e0c5b3849b8e0f2490

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