Skip to main content

Calculate word counts in a text file!

Project description

pycounts_ajz

Documentation Status

Calculate word counts in a text file!

Author

Andy Zhang

Installation

$ pip install pycounts_ajz

Usage

pycounts_ajz can be used to count words in a text file and plot results as follows:

from pycounts_ajz.pycounts import count_words
from pycounts_ajz.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_ajz was created by Andy Zhang. It is licensed under the terms of the MIT license.

Credits

pycounts_ajz 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_ajz-0.2.0.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

pycounts_ajz-0.2.0-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_ajz-0.2.0.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pycounts_ajz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3b70eda96ab7cb218865fa914419f809b6ed55d54d0693b0f4e70f21ab1244b5
MD5 ca98b6cf983755b0fdef529fe266e64d
BLAKE2b-256 72c852a23c6fa6939f03787fee1babccb4e8f2e87457539129f115fd63a639e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_ajz-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 86.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pycounts_ajz-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58c063f3dd5f9c3104589bf9f5ab59a9a02215a79985b9e3afd9232a5d9cf8fe
MD5 35a4a7d03a57568562014b72396e114c
BLAKE2b-256 1de0fed66771c48578af2aff5c871d3eff4f823e8a7c82779425b0488a06c37a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page