Skip to main content

Calculate word counts in a text file!

Project description

pywordcounts

Calculate word counts in a text file!

Installation

$ pip install pywordcounts

Usage

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

from pywordcounts.pywordcounts import count_words
from pywordcounts.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

pywordcounts was created by Rakesh Pandey. It is licensed under the terms of the MIT license.

Credits

pywordcounts 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

pywordcounts-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

pywordcounts-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywordcounts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-46-generic

File hashes

Hashes for pywordcounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7b4ccc550922bea7a2fe55afe9a19591adc1aa019dfa8b94f201ae6a440386f
MD5 38f85799a51326c3c98787c50fc503cc
BLAKE2b-256 bc218e1bd779c270b45c653751829d4270cd0616a4ed43fbdb719fe1d38cf015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywordcounts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-46-generic

File hashes

Hashes for pywordcounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 688527879bc1e66503b5055f025a36d9895febca25fa0c1a6991c54f9a16f64e
MD5 f6ad983be133aaabfb3995328bfe75a5
BLAKE2b-256 915cdcbd05f88ccb10e35fd8919e3be4fdfa1fd9840173bc4f22f03a9e29428b

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