Skip to main content

Calculate word counts in a text file!

Project description

pycounts_jlc207

Calculate word counts in a text file!

Installation

$ pip install pycounts_jlc207

Usage

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

from pycounts_jlc207.pycounts import count_words
from pycounts_jlc207.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_jlc207 was created by Vera Cui. It is licensed under the terms of the MIT license.

Credits

pycounts_jlc207 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_jlc207-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

pycounts_jlc207-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycounts_jlc207-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1a01eeedd0fc411d35398f3b869bcc0b44ea09fff1bd70dda6676984b42635d
MD5 27c3c82b4e48170583ed9d37852fabbb
BLAKE2b-256 b4d79a0e90cacdad6fbc5e8235b8a6e943f1ae9eb554dabb11c50b930fcdd017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_jlc207-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for pycounts_jlc207-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae1d4333833a48bb98f9cea44478f0c319f0756595441dae7c54a65093b8fb9
MD5 ac125be8ca095f45951bb58343b4e686
BLAKE2b-256 5c53e18433ba35704745353d221e80b167a70cc9953c00c469eacd59fc46942b

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