Skip to main content

Calculate word counts in a text file!

Project description

pycounts_tt25

Documentation Status

codecov

Calculate word counts in a text file!

Installation

$ pip install pycounts_tt25

Usage

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

from pycounts.pycounts import count_words
from pycounts.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_tt25 was created by Tiffany Timbers. It is licensed under the terms of the MIT license.

Credits

pycounts_tt25 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_tt25-0.3.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.

pycounts_tt25-0.3.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_tt25-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts_tt25-0.3.0.tar.gz
Algorithm Hash digest
SHA256 40692dd17cbacbaf4fa3c5c15569a0046126e084b9d65ac624b46d488d3f11db
MD5 457fcfb8b73c7bbcd00f5164985d0814
BLAKE2b-256 f7b5f04ca48ebfc9237ee5d7ee33720e4e138e401d2544efb67c14f65d0ad246

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_tt25-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts_tt25-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 426ca04b3cb56e0e881aa7ae2f76c5479b0b6a9f0504f4b078c2017acfe3bab5
MD5 4ecc47a69163d7cd7d492bd5a0bb5a90
BLAKE2b-256 ff4baab8833d92628e33efc6af25a1d1af3fbaf51ee50726211793c7e0e9f42c

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