pycounts_jo
Calculate word counts in a file text
Installation
$ pip install pycounts_jo
Usage
pycounts_jo can be used to count words in a text file and plot results
as follows:
from pycounts_jo.pycounts_jo import count_words
from pycounts_jo.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_jo was created by Jasmine Ortega. It is licensed under the terms of the MIT license.
Credits
pycounts_jo was created with cookiecutter and the py-pkgs-cookiecutter template.
Release files for pycounts-jo 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_jo-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_jo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / pycounts_jo-0.1.0.tar.gz
| Download URL | pycounts_jo-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fc3e24195e57d75786b0a4dee5f64e99ee00d5a669cfb1bbe60a0d07a5bc9fa
|
|
BLAKE2b-256 checksum How to use checksums |
ff84d835a79e6d0df703cb07d487a57fccea1a7d45e321cc6c3829f29e261320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/20.4.0
|
Release files / pycounts_jo-0.1.0-py3-none-any.whl
| Download URL | pycounts_jo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49d5d282dcdeb049c288bc5e6213ebd5b804cb12f8f5e6ebaba1075bca960120
|
|
BLAKE2b-256 checksum How to use checksums |
19d0dec54c8d4c7c171c39f2f458249fa86ea594c5b3880ec305745d135239bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/20.4.0
|