Python package to count text
Project description
pycounts
Calculate word counts in a text file!
Installation
$ pip install pycountsxch
Usage
pycounts
can be used to count words in a text file and plot results
as follows:
from pycountsxch.pycounts import count_words
from pycountsxch.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
pycountsxch
was created by Charles Xu. It is licensed under the terms
of the MIT license.
Credits
pycounts
was created with
cookiecutter
and
the py-pkgs-cookiecutter
template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycountsxch-0.1.3.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pycountsxch-0.1.3.tar.gz
.
File metadata
- Download URL: pycountsxch-0.1.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.12.1 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec77b2b79746fa133552e1b70750b2e89a256397166cba660e05c55d86d10b09 |
|
MD5 | d51e78eaed521a034d35004d35db456b |
|
BLAKE2b-256 | f9bd321e4bbdc7d1d5442cc61e5ea61fbed042ce67739587e3c33e83cc94ce5d |
File details
Details for the file pycountsxch-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pycountsxch-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.12.1 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb0d5934e09a916787fa3cf6fa25479962f7750ff1fd762b808a0bb602cf4229 |
|
MD5 | b59ab46324974556b89b7e73f54b6372 |
|
BLAKE2b-256 | b4d9ed6f5e0c7d0debb0cb261eb7879a88fd5d90d570b420748993e46368f478 |