Calculate word counts in a text file!
Project description
pycounts_dk
Calculate word counts in a text file!
Installation
$ pip install pycounts_dk
Usage
pycounts can be used to count words in a text file and plot results
as follows:
from pycounts.pycounts import count_words
from 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
pycounts_dk was created by Daniel King. It is licensed under the terms of the MIT license.
Credits
pycounts_dk 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_dk-0.1.0.tar.gz.
File metadata
- Download URL: pycounts_dk-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1269a0d81a67370c4d9a8243b94be39bd0c46ecc7b1f21873d42f5969cde336a
|
|
| MD5 |
8d1253d196134e2a29a4e8e0fe3d48c0
|
|
| BLAKE2b-256 |
e24cb8ddb45f3388a1ae77c968c6d8876a5d8186de4018494ccc2bb6558b5b7d
|
File details
Details for the file pycounts_dk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycounts_dk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d42c79fe37ce0f08b45bd757bbe00601732e42e6f96aca456fdcd3f3501823d1
|
|
| MD5 |
9d349ec99a0dafe33a67cd1d670e4d4d
|
|
| BLAKE2b-256 |
e2a21961f92267ec9f902b5bc1607c07d8c0157378a8b5807b0b03b18302d304
|