Skip to main content

A package for doing great things!

Project description

pycounts

Calculate word counts in a text file!

Installation

$ pip install pycounts

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 was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts 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

ibbycounts-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

ibbycounts-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ibbycounts-0.1.0.tar.gz.

File metadata

  • Download URL: ibbycounts-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Darwin/23.2.0

File hashes

Hashes for ibbycounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf8f51aec7ca755f10f4d4ed48b9145ae84cadf7ad25eed6001581f3b58dd0bb
MD5 ea83d11f450eea4cb1fe21ef18081165
BLAKE2b-256 32e30b88f6fc32aa34bb2650b000ebf686561e0fb75d0f639f95c0bbb71bb1c7

See more details on using hashes here.

File details

Details for the file ibbycounts-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ibbycounts-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.6.1 CPython/3.12.0 Darwin/23.2.0

File hashes

Hashes for ibbycounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0269213594514707e0da8c262ebf235964822fd560450ea7899704cae00ee0
MD5 7fcdeada6993d0473ffcaa1808e6047c
BLAKE2b-256 92374640f134e20ff7f531567909222caa13ad07245125d61755ff8e5a9af568

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