Skip to main content

Calculate word counts in a text file!

Project description

pycounts_ksr

Calculate word counts in a text file!

Installation

$ pip install pycounts_ksr

Usage

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

from pycounts_ksr.pycounts_ksr import count_words
from pycounts_ksr.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_ksr was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts_ksr was created with cookiecutter and the py-pkgs-cookiecutter template. dd

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_ksr-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycounts_ksr-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_ksr-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for pycounts_ksr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c05fe134f91335430e5e412fb3078c050c16fe7ec5e7ba83d0b1465770e79097
MD5 4ee42676fb9f8c0b78d4a73976014b90
BLAKE2b-256 fd9a5e0c572bebc1302d52610e275b9b4203690366a0a97d94c91306660a97cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_ksr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for pycounts_ksr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0debba9dd4d5e99722b56931e655c33aab770245e5de384e485461a25d387eb6
MD5 c7676407963c345b8fc34b89d0d405ba
BLAKE2b-256 2612c5819964d63541c54dbf09f9d423ed444e37ebc1c5f9e866a924afaa96c1

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