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

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.2.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.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_p138-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 606379e1a9db7f8dd8775e57afe0a731630902907c0127318117e10abc815a64
MD5 9f4319bad0a548f8243b3f9a3fa12bc7
BLAKE2b-256 3299312758e8b8b7289dfb82105eb0c54c92b6f910475fb21c931b3f1eaba0b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_p138-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cbd643562f3cdb98f71be6b581d3ed2462478495fae5c7b46da2e54de7405685
MD5 1909f8b4c4cf0f945e70d6cfa5d2dec1
BLAKE2b-256 d54a63b810df73620b02f4e33f1afb0614715bd92edb5dd22521acefb634852b

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