Skip to main content

pycounts_bzrudski

Calculate word counts in a text file!

This repository is based on the tutorial presented in the Py-Pkgs tutorial. Due to slight differences in the versions of available packages, some of the code is a bit different.

Installation

$ pip install pycounts_bzrudski

Usage

pycounts_bzrudski can be used to count words in a text file and plot results as follows:

from pycounts_bzrudski.pycounts_bzrudski import count_words
from pycounts_bzrudski.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_bzrudski was created by bzrudski. It is licensed under the terms of the MIT license.

Credits

pycounts_bzrudski was created with cookiecutter and the py-pkgs-cookiecutter template.

Metadata

Release files for pycounts-bzrudski 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycounts-bzrudski 1.0.0
File Size Uploaded
pycounts_bzrudski-1.0.0.tar.gz 85.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycounts-bzrudski 1.0.0
File Interpreter ABI Platform
pycounts_bzrudski-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 171.6 kB

Release files / pycounts_bzrudski-1.0.0.tar.gz

Download URL pycounts_bzrudski-1.0.0.tar.gz
Size 85.1 kB
Tags Source
SHA-256 checksum
How to use checksums
093625826acd1955e3dd680b5a624bc4c8b78c188ca38ce071e5568c7fd14413
BLAKE2b-256 checksum
How to use checksums
ef8152ac68a346fb4aa28a5385e13fd3e272afcf7cecd16919b7973461b773a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pycounts_bzrudski-1.0.0-py3-none-any.whl

Download URL pycounts_bzrudski-1.0.0-py3-none-any.whl
Size 86.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82cd9490c2317ca908a6ec54d18684cfb8b2da59e1501a3d6d20267754ead01e
BLAKE2b-256 checksum
How to use checksums
fbe12ccb1e5184a97666cbebfdfeb9aae46277f846426956430a9e6c9d03cd65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page