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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_rory-0.1.1.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-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cafa9754fb7bd98e4e1cab69c4e5a6e99b257c4621ea2b8721a83e76c7f5fc23
MD5 0c66459f5a9ad7ac0adfd19a8f78f8b6
BLAKE2b-256 fccad4a014fd8f010b9f7ecb25fda9033655c2c3841b62fb8eb9b4fd1c15b178

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycounts_rory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5f72a7a2a76eb410c7e7ec8e525a40f1de345d3c94d9365a7466906ac4f992
MD5 bb9a34256d63ca4af731344f773926a9
BLAKE2b-256 420fd8144b0f29aeade4704cea84c324a93eea7ddf1c8c6da31c5ddca3e15923

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