pycounts_ks
Calculate word counts in a text file!
Installation
$ pip install pycounts_ks
Usage
pycounts_ks can be used to count words in a text file and plot results
as follows:
from pycounts_ks.pycounts_ks import count_words
from pycounts_ks.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_ks was created by Shafayet Khan Shafee. It is licensed under the terms
of the MIT license.
Credits
pycounts_ks was created with
cookiecutter and
the py-pkgs-cookiecutter
template.
Metadata
Release files for pycounts-ks 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_ks-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_ks-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / pycounts_ks-0.1.0.tar.gz
| Download URL | pycounts_ks-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99d07e3d2bcaf75afcc514152ab6b32ac45987f39c1ededfd9ba8a6d916f1783
|
|
BLAKE2b-256 checksum How to use checksums |
70e96013bf98ebb336d000d35a397df9bfd2a42dcfac51559fa49ad1ca788435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Windows/10
|
Release files / pycounts_ks-0.1.0-py3-none-any.whl
| Download URL | pycounts_ks-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b84501b8120be38c483f76461a2a7354a5edaa20228274d698de583ae99b421
|
|
BLAKE2b-256 checksum How to use checksums |
8e1d824253abd135ed7537eda98ee4d126cab7e4c0acaaa5875a65417091b1fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Windows/10
|