This package helps count the number of words in a given text
Project description
wordcounts
This package helps count the number of words in a given text
Installation
$ pip install wordcounts
Usage
wordcounts can be used to count words in a text file and plot results
as follows:
from wordcounts.wordcounts import count_words
from wordcounts.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
wordcounts was created by valli akella. It is licensed under the terms of the MIT license.
Credits
wordcounts 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 wordcounts-0.1.0.tar.gz.
File metadata
- Download URL: wordcounts-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcbc5fbef15713d25b39755de3b714dea80b581f828c982f72a6e7e3824fa820
|
|
| MD5 |
f0c27f79ff484496fd0fc91fb574c94f
|
|
| BLAKE2b-256 |
f9c12bcae0fe66107179e5657cc45e3d95040b258fbacc51e63ad93127ce5ae1
|
File details
Details for the file wordcounts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wordcounts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9292ec645f2df5a6aceb72ddff0aad1c0819f80006293e248f2ab123225bb439
|
|
| MD5 |
e5424725c77a09b5770dd46f7199f362
|
|
| BLAKE2b-256 |
11f1f3bcb5778fca796da147a4c1d0ef35df8583c7ad51005f5a78fdac94ee4c
|