Skip to main content

Calculate word counts in a text file!

Project description

pycounts_aleung

Calculate word counts in a text file!

Installation

$ pip install pycounts_aleung

Usage

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

from pycounts_aleung.pycounts_aleung import count_words
from pycounts_aleung.plotting_aleung 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_aleung was created by Adrianne Leung. It is licensed under the terms of the MIT license.

Credits

pycounts_aleung 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_aleung-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

pycounts_aleung-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_aleung-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10

File hashes

Hashes for pycounts_aleung-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea721b49e5cafaecde11318a78724a3f72c1ac139eed4302511bd12c3fc1fd6f
MD5 958d2f15f1538da810acb99013dd3322
BLAKE2b-256 257b0e6b04f3cd4009525072141fb1bc27a16b235cd68cea3eb596a9cbfd58c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_aleung-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10

File hashes

Hashes for pycounts_aleung-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a66bc9c2f2ede752cfaf000672b5227f708d95a49e73844df8af47bb32db8bcc
MD5 c98345502047d0d8861726f2b806d797
BLAKE2b-256 72f85389e5b76d5fcf93231c2fca67adf3602347341bff47e845a8a4852a591b

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