Skip to main content

Calculate word counts in a text file!

Project description

pycounts_geeto

Calculate word counts in a text file!

Installation

$ pip install pycounts_geeto

Usage

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

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

pycounts_geeto was created by Kevin Robinson. It is licensed under the terms of the MIT license.

Credits

pycounts_geeto 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_geeto-0.3.0.tar.gz (85.5 kB view details)

Uploaded Source

Built Distribution

pycounts_geeto-0.3.0-py3-none-any.whl (86.0 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_geeto-0.3.0.tar.gz.

File metadata

  • Download URL: pycounts_geeto-0.3.0.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pycounts_geeto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8a8c6d514e3f9ace1c90826af4f5b6386775bfb48b8d360aee944f286c490a17
MD5 09b20c8fbd023b0ecf98f3898ae4a296
BLAKE2b-256 2d8168fafb2c40dcb3b8010a4aad2bbf8d8b4b0aba1eeee518779fbbbe416d70

See more details on using hashes here.

File details

Details for the file pycounts_geeto-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_geeto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac0822ac26e0a49808dcad8809c3ecefd7235d82e55d4152be602e0b6a14a201
MD5 27b3b40f468e505bb895f5158c3bc401
BLAKE2b-256 9e1a173c8c3d46e2aeb5b0cff5f2d5af51bbfcd8520e6106b9155b8808977d33

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