Skip to main content

Calculate word counts in a text file!

Project description

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.

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

pycounts_bzrudski-0.4.0.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycounts_bzrudski-0.4.0-py3-none-any.whl (86.4 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_bzrudski-0.4.0.tar.gz.

File metadata

  • Download URL: pycounts_bzrudski-0.4.0.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pycounts_bzrudski-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8d4932701c3291c23fc02484b0d4fa598c7631f3ccb84927cc7d594a9fe011ac
MD5 9bcf085d93dcf0682d457e7afbb6cb97
BLAKE2b-256 1e8558c27fcc805d81277bfc64036978e89c5f3534206bdea6eabf6fb9b429e9

See more details on using hashes here.

File details

Details for the file pycounts_bzrudski-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_bzrudski-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1deb61701d43b2e5765d2637c8ca99e85ea6f94d967bde3655e2a9f3260c5b65
MD5 4de423555f48b32af15cd88bc62468fd
BLAKE2b-256 d0eb4bcde148f1ae8787cce3d9b822eb4063dcc9b6be98464fec9fde14bafd3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page