pycounts_hu
Calculate word counts in a text file!
Installation
$ pip install pycounts_hu
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
pycounts_hu was created by Hu Zhao. It is licensed under the terms of the MIT license.
Credits
pycounts_hu was created with cookiecutter and the py-pkgs-cookiecutter template.
Metadata
Release files for pycounts-hu 0.2.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_hu-0.2.0.tar.gz | 85.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_hu-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 170.9 kB
Release files / pycounts_hu-0.2.0.tar.gz
| Download URL | pycounts_hu-0.2.0.tar.gz |
|---|---|
| Size | 85.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3abbba4ba52abf311b1acf3bda67bc59b38f6c2c1d7c25e8abfdeac0ccd09bed
|
|
BLAKE2b-256 checksum How to use checksums |
f44bf34eaf28bc3ca86d29bc7574a71f0303a2fce71fbfe9b8d7c990cfd14a29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic
|
Release files / pycounts_hu-0.2.0-py3-none-any.whl
| Download URL | pycounts_hu-0.2.0-py3-none-any.whl |
|---|---|
| Size | 85.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4007b571e1c2787d361968af0ba1bbba1358450a8f7d06fe4f0a862a384ff279
|
|
BLAKE2b-256 checksum How to use checksums |
7b8d98a4f87eef5eaf9422d05593f6fcded43e66095746e0313c7db5b28ac8c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic
|