Calculate word counts in a text file!
Project description
pywordcounts
Calculate word counts in a text file!
Installation
$ pip install pywordcounts
Usage
pywordcounts
can be used to count words in a text file and plot results
as follows:
from pywordcounts.pywordcounts import count_words
from pywordcounts.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
pywordcounts
was created by Rakesh Pandey. It is licensed under the terms of the MIT license.
Credits
pywordcounts
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
Built Distribution
File details
Details for the file pywordcounts-0.1.0.tar.gz
.
File metadata
- Download URL: pywordcounts-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b4ccc550922bea7a2fe55afe9a19591adc1aa019dfa8b94f201ae6a440386f |
|
MD5 | 38f85799a51326c3c98787c50fc503cc |
|
BLAKE2b-256 | bc218e1bd779c270b45c653751829d4270cd0616a4ed43fbdb719fe1d38cf015 |
File details
Details for the file pywordcounts-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pywordcounts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 688527879bc1e66503b5055f025a36d9895febca25fa0c1a6991c54f9a16f64e |
|
MD5 | f6ad983be133aaabfb3995328bfe75a5 |
|
BLAKE2b-256 | 915cdcbd05f88ccb10e35fd8919e3be4fdfa1fd9840173bc4f22f03a9e29428b |