Calculate word counts in a text file!
Project description
pycounts_dl
Calculate word counts in a text file!
Installation
$ pip install pycounts_dl
Usage
pycounts
can be used to count words in a text file and plot results
as follows:
from pycounts_dl.pycounts_dl import count_words
from pycounts_dl.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_dl
was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.
Credits
pycounts
was created with
cookiecutter
and
the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycounts_dl-0.1.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file pycounts_dl-0.1.3.tar.gz
.
File metadata
- Download URL: pycounts_dl-0.1.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60a4a3a3b08149a3e76ca70548d275988f082f1666f51394c1eb35dea778f27 |
|
MD5 | 5dc6fcaed4045cc89bdcfef76c2f4475 |
|
BLAKE2b-256 | 302f362c7992b6a412750ceea47d040ee5c96c39d3e38e4bb18bced923597252 |
File details
Details for the file pycounts_dl-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pycounts_dl-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc338635da2f963aa36f3edbdfac850d7e23d34f0b3e61086c7881b4abdb1ef |
|
MD5 | db41e379c4974c010abf0fe857992412 |
|
BLAKE2b-256 | 29f15b5379199907b1112d440523daf802bd2ea4b1751ea3ae936788552560df |