Skip to main content

Calculate word counts in a text file!

Project description

pycounts_yh

Calculate word counts in a text file!

Installation

$ pip install pycounts_yh

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_yh was created by Yasmin Hassan. It is licensed under the terms of the MIT license.

Credits

pycounts_yh 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_yh-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

pycounts_yh-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_yh-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for pycounts_yh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e092049cb4a32db82e762e7a2975e85b4a06d8b26a83a96a973f7302b1c683d
MD5 6fc5b5cec816adc9c2cccad27e3d43c9
BLAKE2b-256 28571c2f5d29e332572dcab76c78ae155c267f9a7c92391df2650a5e9fce1e24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_yh-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for pycounts_yh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 634d882c025d65b64446d2a54e8302d3305473e775e86f87a07057b811c2b37c
MD5 4fcb3cdde60121aec1cd7115adaf77e5
BLAKE2b-256 9d226d30f80b5febee38fd676fb382496bbaa7900f0931258da78f4f1adaa3dd

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