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

pycount_dus-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycount_dus-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Windows/11

File hashes

Hashes for pycount_dus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c6fe23fd891feb0c2257d18701ce817ec32a4398eb8b3039e936e27bddcff96
MD5 57950956de319ec7d025cba9b52c4754
BLAKE2b-256 0fc3100fcb330ef87f64fe8b99656c8528a7dc48828ab3dbdc80aa524fa2f428

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycount_dus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Windows/11

File hashes

Hashes for pycount_dus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47990d44bb02c0fdbda23c892499837eec1a14f3b1dffff69158d87b09d14a85
MD5 bd1115e39cd192c529644e23c7014763
BLAKE2b-256 647c3109481e5249bb22de356006179a8b4d702532ecf1dc53f5b62a3c00f9b8

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