Skip to main content

Calculate word counts in a text file!

Project description

pycounts

Calculate word counts in a text file!

Installation

$ pip install pycounts

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

pycounts was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts 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

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_p138-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.10 Windows/11

File hashes

Hashes for pycounts_p138-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d47a0291346fa351ff58426e0e43e0773106ab609e3668d58d8d0d647b7c90c
MD5 c6078ef353a1f45f5492d418f193692f
BLAKE2b-256 374180c3b19e78074d75c01b0bc339bc38db2c2644954e52de24f4905b61415f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_p138-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.3 CPython/3.12.10 Windows/11

File hashes

Hashes for pycounts_p138-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c51171a55114c90a0f9011af786b87eb6bb71492d1e5ba992acd1ec7464782d6
MD5 af2fbdf614280c8c76a6758f4e8252a5
BLAKE2b-256 ef265169a978288fdb00514d85b29bdb38fc0487dad1f8fc76e361870cfd8f77

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