Skip to main content

A package to calculate word counts from a text file

Project description

pycount_dus

A package to calculate word counts from a text file

Installation

$ pip install pycount_dus

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

pycount_dus was created by Luiz Dustin Eduardo. It is licensed under the terms of the MIT license.

Credits

pycount_dus 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

pycount_dus-0.3.0.tar.gz (84.9 kB view details)

Uploaded Source

Built Distribution

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

pycount_dus-0.3.0-py3-none-any.whl (86.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycount_dus-0.3.0.tar.gz
Algorithm Hash digest
SHA256 59d7ee02df9c2c2808641b6188d1e1a8e5c47018906f87c74b3f757cb45779dc
MD5 9f5628e578cfe737e26476bd95499390
BLAKE2b-256 a280c99537723d691961e573e20cbe0ef644f9ae26c44c92b573cc243cd152c9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycount_dus-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37527176967ad47ad5718d707174b34b26b00ca10ab39c9be74c465874b97afc
MD5 a8c9388b66e8869bd55a9d44f2a2c161
BLAKE2b-256 6bd495851ec30279e4edb4e592552ea35aa5ea34ee03ed0b8913ea7698f22fc3

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