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-1.0.0.tar.gz (85.1 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-1.0.0-py3-none-any.whl (86.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycounts_bzrudski-1.0.0.tar.gz
Algorithm Hash digest
SHA256 093625826acd1955e3dd680b5a624bc4c8b78c188ca38ce071e5568c7fd14413
MD5 e741b4c26043543160d4f92d55d37cc9
BLAKE2b-256 ef8152ac68a346fb4aa28a5385e13fd3e272afcf7cecd16919b7973461b773a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycounts_bzrudski-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82cd9490c2317ca908a6ec54d18684cfb8b2da59e1501a3d6d20267754ead01e
MD5 19d423dfeb305cc4fa8839707f9be916
BLAKE2b-256 fbe12ccb1e5184a97666cbebfdfeb9aae46277f846426956430a9e6c9d03cd65

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