Skip to main content

Calculate word counts in a text file!

Project description

pycountss

Calculate word counts in a text file!

Installation

$ pip install pycountss

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

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

Credits

pycountss 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

pycounts312tb-0.3.0.tar.gz (85.7 kB view details)

Uploaded Source

Built Distribution

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

pycounts312tb-0.3.0-py3-none-any.whl (86.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts312tb-0.3.0.tar.gz
  • Upload date:
  • Size: 85.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts312tb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 73982150942b2a023c36ee31aefa26fb1d7e43ce1b971f0f622c302a78f3acdb
MD5 b92e81820bf901648594bd15298c24de
BLAKE2b-256 5aa5d9e493c091301bbbe10fbce54b550ef30d8fe40d52e81bc75649df3661fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts312tb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 86.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts312tb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d707b85403f8de92f8fe890306f6cbf03aa3bccc3647c6430716a0bf7c7bf1
MD5 63f64e46e711818ec8570cb7c33fd022
BLAKE2b-256 8eee85d6aa1431b106188c4bbe247d321d82c7efadcf1b2a263720d67ccfd7a0

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