Skip to main content

A word count calculator

Project description

Installation

$ pip install pycounts_rory

Usage

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

from pycounts_rory.pycounts_rory import count_words
from pycounts_rory.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()

For full documentation see: https://pycounts-rory.readthedocs.io/en/latest/

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_rory was created by Rory White. It is licensed under the terms of the MIT license.

Credits

pycounts_rory 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_rory-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pycounts_rory-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_rory-1.0.0.tar.gz.

File metadata

  • Download URL: pycounts_rory-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pycounts_rory-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6cc222a74fa6746690a7d765ea2fe0f967ff25493321022da81e06c7953d36bb
MD5 92d21091d3b39994eb79374601d9721e
BLAKE2b-256 796135a2ba846e6d865cd100375784f09e2f22dea3db031ad55d636577bba3c8

See more details on using hashes here.

File details

Details for the file pycounts_rory-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_rory-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c68528e1a9c247cefdce8099fcb24981fb2bd866c625976d0bab635def33292c
MD5 8ce077727142b53983e064cc391d7a99
BLAKE2b-256 11b0ed50aec92c1472f34dca38461989b711f35c317623e139a8baf15e8f1e63

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