Skip to main content

A python package to help you count words in a text file

Project description

countpy

A python package to help you count words in a text file

Installation

$ pip install countpy

Usage

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

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

countpy was created by Dalia Tavizon-Dykstra. It is licensed under the terms of the MIT license.

Credits

countpy 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

countpy-0.3.0.tar.gz (120.8 kB view details)

Uploaded Source

Built Distribution

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

countpy-0.3.0-py3-none-any.whl (120.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countpy-0.3.0.tar.gz
  • Upload date:
  • Size: 120.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for countpy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 07de6500a3add04d99d222c6492436a58c752d429ab46f8c12651cb32cb26ade
MD5 7a0c74ba0a5722e0e258966bb9632557
BLAKE2b-256 9bafcfb83847359f650ca6e2a940480171e391fd529009c1808eae954983e44a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: countpy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 120.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for countpy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15cf596c3c127afb355610f80bcb5aac4866d9fb61a0ebdb80ed17252d67b98b
MD5 d9fc2dd064ec563d1ca0092834400edb
BLAKE2b-256 4a32a3567dcdb7ace8a129f7669e70df3c4d2317b72b789d45010ebd7eb64f9c

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