Skip to main content

Calculate word counts in a text file

Project description

pycountsmm1

Calculate word counts in a text file

Installation

$ pip install pycountsmm1

Usage

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

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

pycountsmm1 was created by Melisa Maidana. It is licensed under the terms of the MIT license.

Credits

pycountsmm1 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

pycountsmm1-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountsmm1-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0

File hashes

Hashes for pycountsmm1-0.1.0.tar.gz
Algorithm Hash digest
SHA256 181a04fed99b4b6d00236304e25c5540e86261a74977ef0b2bd3e969cfdd5d51
MD5 c7177add10af91615b98b1f6f3891b78
BLAKE2b-256 1363a81aa00872b84141b2259f1a915c1558568d6e100009b6f6d0cda1b116ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountsmm1-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.1.12 CPython/3.9.9 Darwin/21.1.0

File hashes

Hashes for pycountsmm1-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88bcf6759fcbfeef3a592dcc93cddc5615dec2512bf9ae02355a0b00234356ae
MD5 a4c44d62b38e0b33479b7456b52bc23b
BLAKE2b-256 1bc173789db71e62ba734baa9fdbf4db472778f6bc9bf6c73bdec218c7149724

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