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.1.0.tar.gz (2.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.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.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.1.0.tar.gz
Algorithm Hash digest
SHA256 d5caebf50ec93d473bb4088b68e65e7f4b694c20bfb32d16c0f62809c0e27c3d
MD5 7b9167c797250643c15b23f64a86e6f2
BLAKE2b-256 69d5a083726730450a8c77e46642c86bb03fdd6ab7af2c8a8a971ca5d22412ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: countpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab261d93a84d5d7572373cd3f870a9639350b71eb2cadea036b8069cc12cfafc
MD5 dc64ae1c52cc3064b8959ee916453cd3
BLAKE2b-256 e6bbcc7d3ca3d64af164aa3a184bb3022ee0c87d0b08f65fad238e878c3d36b0

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