Skip to main content

Calculate Word counts in a text file.

Project description

pycounts_fh

Calculate word counts in a text file!

Installation

$ pip install pycounts_fh

Usage

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

from pycounts_fh.pycounts_fh import count_words
from pycounts_fh.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.

Links in PyPI

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_fh-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pycounts_fh-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_fh-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for pycounts_fh-0.1.2.tar.gz
Algorithm Hash digest
SHA256 770a8480cde48570ba0e2f46156ae1bd8f2755f4b5c2efa50f99c4934b17596a
MD5 5f09918013bd997b37e73bea5922bf18
BLAKE2b-256 d3ba30c25f1d538b37dcde0720a8f253ac3b598009d8fc4b26a7a249562c667b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_fh-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for pycounts_fh-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aef1dd470c7372ff600fb2c781642b6dea9219250023c0634f5c5852e704d7a3
MD5 89459b04ccac6128b84ff861f0953774
BLAKE2b-256 845fc172b4006994fbac2ae8111cdc844cedc26681cadf15a11770708ba9d4a7

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