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.3.0.tar.gz (86.7 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.3.0-py3-none-any.whl (87.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_bzrudski-0.3.0.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for pycounts_bzrudski-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a7037fba81f35742866cf479d76d3e92250f1f2a7f0b3a65e57f78bf359a3dc7
MD5 a134555de3c402dec1b33cdbce193d75
BLAKE2b-256 446ce48931300a08b7afc2c8a476ae143a8c3f560199ade3130af1a562e21ec9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_bzrudski-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 87.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for pycounts_bzrudski-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43a15c5adfb33f3b40bc230f55d14fd935f1427727b2ae4cd3c1d0f4fa3be39a
MD5 2e098426ba887ab2db6e682149e8dc61
BLAKE2b-256 899eea97ded8ffd5e5492c8bea943d30570b308db8a6f63e49ab520cae616263

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