Calculate word counts in a text file!
Project description
pycnt
Calculate word counts in a text file!
Installation
$ pip install pycnt
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
pycnt
was created by Arsen Poghosyan. It is licensed under the terms of the MIT license.
Credits
pycnt
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
pycnt-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
pycnt-0.1.0-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file pycnt-0.1.0.tar.gz
.
File metadata
- Download URL: pycnt-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.12 Linux/5.4.0-109-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33724053cb84b577a95de4c124468820516b2f9b1005193c114617c51a9c8ae6 |
|
MD5 | d32e9c9e01045e077caabf252c490355 |
|
BLAKE2b-256 | 4008266e4fea3d18f1ddb7a870a55bb4d31039ba97feb8b2bb920b1e484d71f5 |
File details
Details for the file pycnt-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycnt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.12 Linux/5.4.0-109-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8519acf5f53ecc7e3d935f4033cb0486888ac4d4b94dbd7fdb1b577a3b19c9d6 |
|
MD5 | 5cd1785f6295b7778bc0eaf334ea4121 |
|
BLAKE2b-256 | 22202e2d13eaf03bd8d66fa2da922ffe07095298c979b7b3c8cc87c3d9e37911 |