Skip to main content

A short test package that counts the words in a given file.

Project description

pycounts_ts_mds

codecov

A short test package that counts the words in a given file.

Installation

$ pip install pycounts_ts_mds

Usage

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

from pycounts_ts_mds.pycounts_ts_mds import count_words
from pycounts_ts_mds.pycounts_ts_mds 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_ts_mds was created by Timothy Singh. It is licensed under the terms of the MIT license.

Credits

pycounts_ts_mds 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_ts_mds-0.2.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_ts_mds-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_ts_mds-0.2.0.tar.gz.

File metadata

  • Download URL: pycounts_ts_mds-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pycounts_ts_mds-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e15ffe32897cf745c6d9b738e126fd15fa82a41a21e83fe83437b0c10586d85
MD5 6b90f4e645acd44914e0ea9f828e234a
BLAKE2b-256 90a8380ab55cc9737d3ae5732f05929fbf6323dea5698ee18039d06a09fd4975

See more details on using hashes here.

File details

Details for the file pycounts_ts_mds-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_ts_mds-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b672cba9921bb426f822c1ec51e2a441bd405693395fb5d042cd511820672f0
MD5 a7de0c6c25e5f7295daa1a7a43622191
BLAKE2b-256 3f06335799de7094d875f2f8f9d04a46f106270d0b396117a1ab6e95fe096072

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