Skip to main content

Calculate word counts in a text file!

Project description

pycounts_hu

Calculate word counts in a text file!

Installation

$ pip install pycounts_hu

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_hu was created by Hu Zhao. It is licensed under the terms of the MIT license.

Credits

pycounts_hu 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_hu-0.2.0.tar.gz (85.1 kB view details)

Uploaded Source

Built Distribution

pycounts_hu-0.2.0-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_hu-0.2.0.tar.gz
  • Upload date:
  • Size: 85.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic

File hashes

Hashes for pycounts_hu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3abbba4ba52abf311b1acf3bda67bc59b38f6c2c1d7c25e8abfdeac0ccd09bed
MD5 f1d92ff5d8e7b5ab567778998ef5c593
BLAKE2b-256 f44bf34eaf28bc3ca86d29bc7574a71f0303a2fce71fbfe9b8d7c990cfd14a29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_hu-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic

File hashes

Hashes for pycounts_hu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4007b571e1c2787d361968af0ba1bbba1358450a8f7d06fe4f0a862a384ff279
MD5 aa5b565c93eea7a1869f92b44252acaf
BLAKE2b-256 7b8d98a4f87eef5eaf9422d05593f6fcded43e66095746e0313c7db5b28ac8c3

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