Calculate word counts in a text file
Project description
pycounts_tripartio
Calculate word counts in a text file!
Installation
pip install pycounts_tripartio
Usage
pycounts_tripartio can be used to count words in a text file and plot results
as follows:
from pycounts_tripartio.pycounts import count_words
from pycounts_tripartio.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_tripartio was originally created by Tomas Beuzen and then was copied by tripartio as a learning exercise. It is licensed under the terms of the MIT license.
Credits
pycounts_tripartio 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_tripartio-0.1.0.tar.gz.
File metadata
- Download URL: pycounts_tripartio-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44d858a32f67d597b3a40e8eb4f992ad51436ed90283b7f5bb838d74538d11ca
|
|
| MD5 |
fc660123bc88b0281bef1616beb92814
|
|
| BLAKE2b-256 |
ce91dd0ee96ae12087902ae972138b90284e27deb11555474313ecb44538ca88
|
File details
Details for the file pycounts_tripartio-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycounts_tripartio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f351f5888e3b584c3bd8fbf2cd46e720e48ad9c66fa7aa285b49220297be8058
|
|
| MD5 |
6891fd5a4fd6fcf39772117e5989f5a8
|
|
| BLAKE2b-256 |
53757f8d390f1820352ea35d1821f3d1a1576b7c1c78fe77687c1f7a5fbaf188
|