Python Counter
Project description
pycounts_farhan
Calculate word counts in a text file!
Installation
pip install pycounts_farhan
Usage
pycounts_farhan can be used to count words in a text file and plot results
as follows:
from pycounts_farhan.pycounts_farhan import count_words
from pycounts_farhan.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_farhan was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.
Credits
pycounts_farhan 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycounts_farhan-0.1.0.tar.gz.
File metadata
- Download URL: pycounts_farhan-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f7a5495000fdb668bcb5636c0657673f42080e8d41f2a99a1f6cddb8cd43c3
|
|
| MD5 |
73f879102c5ea829830c5608ddd1f3d8
|
|
| BLAKE2b-256 |
feec5fb5fd0a7f21011e10c8b66041531dccae94947e7d10f6c76c961b93431d
|
File details
Details for the file pycounts_farhan-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycounts_farhan-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf6bc7b5f9dd6faee070f596f2efcc1579fdaaace679f0ac758f02931b84676
|
|
| MD5 |
bed869943b0b67e212828d96a469a0ea
|
|
| BLAKE2b-256 |
d0b9e7b4166b28f86adad322bf7b1472ba58db53bf4b62ca212161723468695e
|