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.2.0.tar.gz (120.7 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.2.0-py3-none-any.whl (120.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countpy-0.2.0.tar.gz
  • Upload date:
  • Size: 120.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for countpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3821fb0fa5430558f9d760fc38c979ad9e409d234dad4daaa91bef6f8f6d8fc9
MD5 9437d2571149d2651280464359660c1d
BLAKE2b-256 01aa1403b730d66becd039baa102934a723e6e812592850552ada1be53818bb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: countpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 120.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for countpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa91f5479351926d02f79a7c15a6440ee27649de02765e42db4787cc9c926ac
MD5 cd76b4d30f162628633d723ae784b27b
BLAKE2b-256 e7b662182973b770ddfb2c058f976dfbfba1ccab37bc44bcce75b3c1481b7058

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