A python package to help you count words in a text file
Project description
countpy
A python package to help you count words in a text file
Installation
$ pip install countpy
Usage
countpy can be used to count words in a text file and plot results
as follows:
from countpy.countpy import count_words
from countpy.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
countpy was created by Dalia Tavizon-Dykstra. It is licensed under the terms of the MIT license.
Credits
countpy 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 countpy-0.1.0.tar.gz.
File metadata
- Download URL: countpy-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.4 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5caebf50ec93d473bb4088b68e65e7f4b694c20bfb32d16c0f62809c0e27c3d
|
|
| MD5 |
7b9167c797250643c15b23f64a86e6f2
|
|
| BLAKE2b-256 |
69d5a083726730450a8c77e46642c86bb03fdd6ab7af2c8a8a971ca5d22412ff
|
File details
Details for the file countpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: countpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.4 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab261d93a84d5d7572373cd3f870a9639350b71eb2cadea036b8069cc12cfafc
|
|
| MD5 |
dc64ae1c52cc3064b8959ee916453cd3
|
|
| BLAKE2b-256 |
e6bbcc7d3ca3d64af164aa3a184bb3022ee0c87d0b08f65fad238e878c3d36b0
|