pycounts_ramg23
Calculate words counts in a text file!
Installation
$ pip install pycounts_ramg23
Usage
pycounts_ramg23 can be used to count words in a text file and plot results as follows:
from pycounts_ramg23.pycounts_ramg23 import count_words
from pycounts_ramg23.plotting import plot_words
import matplotlib.pyplot as plot
file_path = "test.txt" # path to your file_path
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_ramg23 was created by Rafael Montoya. It is licensed under the terms of the MIT license.
Credits
pycounts_ramg23 was created with cookiecutter and the py-pkgs-cookiecutter template.
Release files for pycounts-ramg23 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 | |
|---|---|---|---|
| pycounts_ramg23-0.1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_ramg23-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / pycounts_ramg23-0.1.0.tar.gz
| Download URL | pycounts_ramg23-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85f046d1216e585508147ad45b726a2e1d6159b740aad65c94fdee38a424e90d
|
|
BLAKE2b-256 checksum How to use checksums |
41f1f8fd622fe07f9abeefce6dade72fefac68af125a0d8314634b66ad635467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.7 Windows/10
|
Release files / pycounts_ramg23-0.1.0-py3-none-any.whl
| Download URL | pycounts_ramg23-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6c966f9a1fed06763d9633197a328e986570ebfd245c83f0d4f5a9dfce5b9ab
|
|
BLAKE2b-256 checksum How to use checksums |
7eed0c412411c787fe0294ccad1d8b60c3fdcfcf3a8471134de2d8dd0807fe9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.7 Windows/10
|