Skip to main content

Calculate word counts in a text file!

Project description

riyapycounts

Calculate word counts in a text file!

Installation

$ pip install riyapycounts

Usage

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

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

riyapycounts was created by Riya Eliza. It is licensed under the terms of the MIT license.

Credits

riyapycounts 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

riyapycounts-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: riyapycounts-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10

File hashes

Hashes for riyapycounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fbe4ce28dcbe162691ca2b17cbaff6896d1cb6f3996d06d1896899990c3e8a0
MD5 d56c6d84fad65ec64af64684a7076da9
BLAKE2b-256 c3176b1282fa1b8396bb346ef311989b3c3ddeaa66aa8946ed66d26c78e473f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: riyapycounts-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.7.1 CPython/3.9.18 Windows/10

File hashes

Hashes for riyapycounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44abb068dc0f298875211bd9544c6e8d92f263a6ea7088715e30c0e859cfc9a1
MD5 b8622bdd4cd62f34fab063afccc01b44
BLAKE2b-256 d566ce01e3aea389e9da4a157a9a10bc4f43c333f48eda3880bce495d14d4a83

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