A package for counting words in a text file
Project description
mds_sm_pycounts
A cool package for counting words in a text file
Installation
$ pip install mds_sm_pycounts
Usage
mds_sm_pycounts can be used to count words in a text file and plot results
as follows:
from mds_sm_pycounts.mds_sm_pycounts import count_words
from mds_sm_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
mds_sm_pycounts was created by Sean McKay. It is licensed under the terms of the MIT license.
Credits
mds_sm_pycounts 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 mds_sm_pycounts-0.1.0.tar.gz.
File metadata
- Download URL: mds_sm_pycounts-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53e40e55a85c3faf849cb99850445e2900ff9fb7a8c3dfc0c02c035e73801e7a
|
|
| MD5 |
0eb9c432e7ca7d556dcfe3f5996699dd
|
|
| BLAKE2b-256 |
050d59b50c4ff69a60ae37c70dab1cdc03cbb91d3ea142a29deb9d41b1d8965e
|
File details
Details for the file mds_sm_pycounts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mds_sm_pycounts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9695570e29fdba827185aca1c89964abcbe51c25a9067cabb61d4228919e0941
|
|
| MD5 |
9aca1d257d1d28afb775b9420185a898
|
|
| BLAKE2b-256 |
f98e1a12ad0e1f3b13bc6bdb64b14d749b979065902104f1d2b8783cfa3b0c68
|