Skip to main content

Calculate the word counts in a text file

Project description

pycountsblee25

Calculate the word counts in a text file

Installation

$ pip install pycountsblee25

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

pycountsblee25 was created by Bryan Lee. It is licensed under the terms of the MIT license.

Credits

pycountsblee25 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

pycountsblee25-0.1.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.

pycountsblee25-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountsblee25-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.11.11 Windows/10

File hashes

Hashes for pycountsblee25-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42ade880f919727923d20f85c40fa1da2a0f2d7173d08c74c18131c5b2efc082
MD5 12b7ebb9414821a10a11d3dfc37f24cb
BLAKE2b-256 37771289cf85d898de04f7f817e1377d3090ac924c48c7987c73e98ebbd2f618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountsblee25-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.11.11 Windows/10

File hashes

Hashes for pycountsblee25-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abd564fa107ec8c51c74defd45e0b0fb63c565c8db904cd33a1c47aa0678b6d9
MD5 b50fbc4479696fe1609aed115a058d14
BLAKE2b-256 0873485cd617379bec67812adddb2273a0f77033b1c47afa23ae8f7cc5843bee

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