pycounts_jlc207
Calculate word counts in a text file!
Installation
$ pip install pycounts_jlc207
Usage
pycounts_jlc207 can be used to count words in a text file and plot results
as follows:
from pycounts_jlc207.pycounts import count_words
from pycounts_jlc207.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_jlc207 was created by Vera Cui. It is licensed under the terms of the MIT license.
Credits
pycounts_jlc207 was created with cookiecutter and the py-pkgs-cookiecutter template.
Release files for pycounts-jlc207 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_jlc207-0.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_jlc207-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / pycounts_jlc207-0.1.0.tar.gz
| Download URL | pycounts_jlc207-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1a01eeedd0fc411d35398f3b869bcc0b44ea09fff1bd70dda6676984b42635d
|
|
BLAKE2b-256 checksum How to use checksums |
b4d79a0e90cacdad6fbc5e8235b8a6e943f1ae9eb554dabb11c50b930fcdd017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
|
Release files / pycounts_jlc207-0.1.0-py3-none-any.whl
| Download URL | pycounts_jlc207-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ae1d4333833a48bb98f9cea44478f0c319f0756595441dae7c54a65093b8fb9
|
|
BLAKE2b-256 checksum How to use checksums |
5c53e18433ba35704745353d221e80b167a70cc9953c00c469eacd59fc46942b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
|