Skip to main content

Calculate word counts in a text file!

Project description

pycounts_ks

Calculate word counts in a text file!

Installation

$ pip install pycounts_ks

Usage

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

from pycounts_ks.pycounts_ks import count_words
from pycounts_ks.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_ks was created by Shafayet Khan Shafee. It is licensed under the terms of the MIT license.

Credits

pycounts_ks 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_ks-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pycounts_ks-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_ks-0.1.0.tar.gz.

File metadata

  • Download URL: pycounts_ks-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Windows/10

File hashes

Hashes for pycounts_ks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 99d07e3d2bcaf75afcc514152ab6b32ac45987f39c1ededfd9ba8a6d916f1783
MD5 c346d7e5a3d0196ee8c23fecc7b8aa26
BLAKE2b-256 70e96013bf98ebb336d000d35a397df9bfd2a42dcfac51559fa49ad1ca788435

See more details on using hashes here.

File details

Details for the file pycounts_ks-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycounts_ks-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Windows/10

File hashes

Hashes for pycounts_ks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b84501b8120be38c483f76461a2a7354a5edaa20228274d698de583ae99b421
MD5 fe595493d85b7cc84cba3402e6d00487
BLAKE2b-256 8e1d824253abd135ed7537eda98ee4d126cab7e4c0acaaa5875a65417091b1fb

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