Toy Package for DSCI 524 that counts words in given text.
Project description
pycountssu1
Toy Package for DSCI 524 that counts words in given text.
Installation
$ pip install pycountssu1
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
pycountssu1 was created by Salva Umar. It is licensed under the terms of the MIT license.
Credits
pycountssu1 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 pycountssu1-0.1.0.tar.gz.
File metadata
- Download URL: pycountssu1-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
702cda8ef1d9a93a6f0fba380ca776dc7ba5fdb07568ea0d8be3726fbcebf062
|
|
| MD5 |
a9eb25acac83d00ddd6734701c13434e
|
|
| BLAKE2b-256 |
fb4d11f562e85d9e39cdf6a0fc6fe4930e3ce5445a4139a0ca27bbe5d3b852c4
|
File details
Details for the file pycountssu1-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycountssu1-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85e5bac9088cd6f288add3569b08e7de57fb8746bb9e7b3b90b50a25d39cda5
|
|
| MD5 |
fe71ec4d20543f464509aa7362dd4f71
|
|
| BLAKE2b-256 |
87e8590bd0014b0c9a8f4cc315417377d9245bd879503dfbbdb9cf6461aeb803
|