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.
Metadata
Release files for wordcounts 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wordcounts-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wordcounts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / wordcounts-0.1.0.tar.gz
| Download URL | wordcounts-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcbc5fbef15713d25b39755de3b714dea80b581f828c982f72a6e7e3824fa820
|
|
BLAKE2b-256 checksum How to use checksums |
f9c12bcae0fe66107179e5657cc45e3d95040b258fbacc51e63ad93127ce5ae1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.0 Darwin/20.4.0
|
Release files / wordcounts-0.1.0-py3-none-any.whl
| Download URL | wordcounts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9292ec645f2df5a6aceb72ddff0aad1c0819f80006293e248f2ab123225bb439
|
|
BLAKE2b-256 checksum How to use checksums |
11f1f3bcb5778fca796da147a4c1d0ef35df8583c7ad51005f5a78fdac94ee4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.0 Darwin/20.4.0
|