Skip to main content

This package helps count the number of words in a given text

Project description

wordcounts

This package helps count the number of words in a given text

Installation

$ pip install wordcounts

Usage

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

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

wordcounts was created by valli akella. It is licensed under the terms of the MIT license.

Credits

wordcounts 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

wordcounts-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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordcounts-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.10.0 Darwin/20.4.0

File hashes

Hashes for wordcounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bcbc5fbef15713d25b39755de3b714dea80b581f828c982f72a6e7e3824fa820
MD5 f0c27f79ff484496fd0fc91fb574c94f
BLAKE2b-256 f9c12bcae0fe66107179e5657cc45e3d95040b258fbacc51e63ad93127ce5ae1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wordcounts-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.10.0 Darwin/20.4.0

File hashes

Hashes for wordcounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9292ec645f2df5a6aceb72ddff0aad1c0819f80006293e248f2ab123225bb439
MD5 e5424725c77a09b5770dd46f7199f362
BLAKE2b-256 11f1f3bcb5778fca796da147a4c1d0ef35df8583c7ad51005f5a78fdac94ee4c

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