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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycount_dus-0.2.0.tar.gz
  • Upload date:
  • Size: 85.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 d9ead272bed31ae706441833f759acd8287d7d3d059ae21e5aea83d55561999d
MD5 b5fca135681b29e25bfd33067282b1fa
BLAKE2b-256 197d6607e0b549857b7e58597f2f2d18f4605450f17b18704e2f0321970965ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycount_dus-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 87.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f06c64a990d0c192e2457836adf8432c7909563f80004665da5533b00c2cc6c
MD5 2fe71aec3d7556587c799e649c489abc
BLAKE2b-256 e409679b21cf574ea95f1a4fd1a066f8c0286857861f98759763154be605ab3e

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