Skip to main content

Calculate word counts in a text file!

Project description

pycounts_bill_mds

Calculate word counts in a text file!

Installation

$ pip install pycounts_bill_mds

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_bill_mds was created by Bill Wan. It is licensed under the terms of the MIT license.

Credits

pycounts_bill_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_bill_mds-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pycounts_bill_mds-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_bill_mds-0.1.1.tar.gz.

File metadata

  • Download URL: pycounts_bill_mds-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Darwin/23.2.0

File hashes

Hashes for pycounts_bill_mds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8ec66ed40c47a5913596672b459a16b1880782b6220d47a72583e5ae59f213e
MD5 e7ed0af9cf2616eab51214a604206cad
BLAKE2b-256 e8206b24d7f2725f12ffe476a7407227d7d5bcf3f33b325e25679e4d0a8ad411

See more details on using hashes here.

File details

Details for the file pycounts_bill_mds-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_bill_mds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb83fe9e2980a99444a8a774ac469214d8742f2b32f5bec44b4b09cce7591763
MD5 9d938ac50e9dee89794d30ee615d1e02
BLAKE2b-256 392004999d3892d465292cbcf079b116793a195f400bec6d29f79a0cc34eccb6

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