Skip to main content

Calculates words counts in a text file!

Project description

wordcountpy

Calculates words counts in a text file!

Installation

$ pip install wordcountpy

Usage

wordcountpy can be used to count words in a test file and plot results as follows

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

wordcountpy was created by Richard Asiamah. It is licensed under the terms of the MIT license.

Credits

wordcountpy 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

wordcountpy-0.1.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.

wordcountpy-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordcountpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Windows/10

File hashes

Hashes for wordcountpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e55322a8e12c2197f166833e901ede3f4d4d1d6aca876360f5540290ab3b1db7
MD5 35e1d509329938758ae1188b116e5bf2
BLAKE2b-256 38d2540c9045a0d339af743ad9db0674070673084edb820728e541ef31c3aaff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wordcountpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Windows/10

File hashes

Hashes for wordcountpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce6bd63c9d049c167cebd33ab594dc8b844a44259bc06f94c02dbef984d9164c
MD5 5e788e13cf0292d32902eabf0d6e5082
BLAKE2b-256 7af0b65e0e9664d65b78f1b456ddaf024eea7d2c74aaf63f4f59259cd542eb98

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