Skip to main content

A toy package for counting words in a text file. DSCI524 individual assignment

Project description

pycounts_toy_az

A toy package for counting words in a text file. DSCI524 individual assignment

Installation

$ pip install pycounts_toy_az

Usage

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

from pycounts_toy_az.pycounts import count_words
from pycounts_toy_az.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_toy_az was created by Alix Zhou. It is licensed under the terms of the MIT license.

Credits

pycounts_toy_az 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_toy_az-0.1.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_toy_az-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_toy_az-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.0.0

File hashes

Hashes for pycounts_toy_az-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85e2279e6dae7ac2e5d7f3aabda32b8b608f2b1c5aff0d131b3695c9f7c842af
MD5 a2f9dc1c0c84fabfd453f227097ce217
BLAKE2b-256 de5c197e5126df6b92f8d6d346a84a9ef3285410a6224faa3ea8b36ccadbd70b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_toy_az-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.8.5 CPython/3.13.1 Darwin/24.0.0

File hashes

Hashes for pycounts_toy_az-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3849835f5d03154e826fc68f2d1355439d919a918124db1e2099e573b2c65b6
MD5 c35cf3fc09940946e3a18f0f7bd17c77
BLAKE2b-256 c0a29b9455c792c9ab29ffb9ee7ff99942895a291f59fa983b971f3d718d8652

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