This is a test Python package to learn python package creation process. This package includes simple functions operates on text file in Python.
Project description
pycounts_sl
This is a test Python package to learn python package creation process. This package includes simple functions operates on text file in Python.
Installation
$ pip install pycounts_sl
Usage
pycounts_sl
can be used to count words in a text file and plot the top 10 most frequent words
as follows:
from pycounts_sl.pycounts_sl import count_words
from pycounts_sl.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_sl
was created by Steven Lio. It is licensed under the terms
of the MIT license.
Credits
pycounts_sl
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
File details
Details for the file pycounts_sl-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_sl-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c32086e7066101dd6fc3baeb4e7dc4eadcce937f0c0bbf8a34058500521cf74 |
|
MD5 | 2edbfa1033392200e1ac759490ff3f02 |
|
BLAKE2b-256 | eec49811c011158a18532f2b5dbcdf4f7c2a66483127d1c99ed536a66bef0abc |
File details
Details for the file pycounts_sl-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_sl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d73d296044007ec5a023373b3d5f029ff4a176d1ff3fcd526f786b8cda9dde0 |
|
MD5 | 37879847f3b1d95162cf7639db4382ca |
|
BLAKE2b-256 | 4922d22e99fc447a65e83541bb97707f234fd92eae645c3fa49b6f3cd83d0c22 |