Skip to main content

Calculate word counts in a text file!

Project description

pycounts_fe

Calculate word counts in a text file!

Installation

$ pip install pycounts_fe

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_fe-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pycounts_fe-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_fe-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for pycounts_fe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40adb849d6966cf5bfd0e8c4711e9ee565c05cfc4874039ac882a2c5facd5e30
MD5 aae43f5647f802f4258554752ee6c99b
BLAKE2b-256 c08a7285cddf55f2be329484555d640d186ca7fbce84e94510b27c4f452eedc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_fe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for pycounts_fe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed57a23e90d4b3ec5946dfc7a2b242981cec0b55435a5a7411dd1d274db1324b
MD5 04ecbcc5b5ac59ad2685d1dac6ee1a1f
BLAKE2b-256 5ef13ce6b3c74e19116d76f3a2934db4c88eedb04e5903c18f6fda56dfc4bd9a

See more details on using hashes here.

Supported by

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