Skip to main content

Assignment 5 for UBC's DSCI310 course. Creating a toy python package.

Project description

pycount_a5

Assignment 5 for UBC's DSCI310 course. Creating a toy python package.

Installation

$ pip install pycounts

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

Credits

pycounts 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

pycount_a5-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycount_a5-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for pycount_a5-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56b4f5ad6c3008019c962463409db9b339355821325e68310d6797a86e9a8599
MD5 e25b332c85b64050797522989daa09cf
BLAKE2b-256 438e9089dd0cf26be61ff597d57ededf0ff94bb488fe1b34f58a6b07e095f808

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycount_a5-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.2 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for pycount_a5-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74927b13f1a343b019f1a43524a83a941ef763f9e15cacc73e312ae6ecc48424
MD5 0721c1d49b22f0dba57dfbf57853413b
BLAKE2b-256 d0a55c65b11f58ce147bcbba573587bd6d5967db6871fde40546e1587c7e1a2b

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