Skip to main content

A package for counting words in a text file

Project description

mds_sm_pycounts

A cool package for counting words in a text file

Installation

$ pip install mds_sm_pycounts

Usage

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

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

mds_sm_pycounts was created by Sean McKay. It is licensed under the terms of the MIT license.

Credits

mds_sm_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

mds_sm_pycounts-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

mds_sm_pycounts-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mds_sm_pycounts-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10

File hashes

Hashes for mds_sm_pycounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53e40e55a85c3faf849cb99850445e2900ff9fb7a8c3dfc0c02c035e73801e7a
MD5 0eb9c432e7ca7d556dcfe3f5996699dd
BLAKE2b-256 050d59b50c4ff69a60ae37c70dab1cdc03cbb91d3ea142a29deb9d41b1d8965e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mds_sm_pycounts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10

File hashes

Hashes for mds_sm_pycounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9695570e29fdba827185aca1c89964abcbe51c25a9067cabb61d4228919e0941
MD5 9aca1d257d1d28afb775b9420185a898
BLAKE2b-256 f98e1a12ad0e1f3b13bc6bdb64b14d749b979065902104f1d2b8783cfa3b0c68

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