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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e2279e6dae7ac2e5d7f3aabda32b8b608f2b1c5aff0d131b3695c9f7c842af
|
|
| MD5 |
a2f9dc1c0c84fabfd453f227097ce217
|
|
| BLAKE2b-256 |
de5c197e5126df6b92f8d6d346a84a9ef3285410a6224faa3ea8b36ccadbd70b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3849835f5d03154e826fc68f2d1355439d919a918124db1e2099e573b2c65b6
|
|
| MD5 |
c35cf3fc09940946e3a18f0f7bd17c77
|
|
| BLAKE2b-256 |
c0a29b9455c792c9ab29ffb9ee7ff99942895a291f59fa983b971f3d718d8652
|