Skip to main content

Calculate word counts in a text file!

Project description

pycountskhb

Calculate word counts in a text file!

Installation

$ pip install pycountskhb

Usage

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

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

pycountskhb was created by Kristin Bunyan. It is licensed under the terms of the MIT license.

Credits

pycountskhb 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

pycountskhb-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountskhb-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for pycountskhb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7f836c5f6da3b4c25293d17fed03461e7ae8e61d919593491acfc58ab92d9c1
MD5 853f3bf6754a4c1d98ce41c29c674f47
BLAKE2b-256 b56cc0f231aaf6e648da5ebbf3a3a51425d0c0af46d42ae7f32cd29e970a9e91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountskhb-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 Darwin/20.6.0

File hashes

Hashes for pycountskhb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24cfb08e2d827e94f7bb117d08d5c9b65aa65aaab91d44fb43c2dfb967774c7f
MD5 391c29f06da51198936a4e6ea8074652
BLAKE2b-256 e3c1aad1cd6cd702fb10602d56b7068b8ca368a7b92a02dc750376c6a774a234

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