Skip to main content

Calculate word counts in a text file!

Project description

pycountscc

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

pycountscc-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

pycountscc-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountscc-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.1.0

File hashes

Hashes for pycountscc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d00e63071d76f30fc431da6f408875d3f096b6108227c167417a6adf7d32095
MD5 e53663bda736c97b72fc9da0070bad82
BLAKE2b-256 c90baf4446792ee1763c6dfa8d617f15a11c912e9627311a0469d4d536d77de0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountscc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.1.0

File hashes

Hashes for pycountscc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa57b075683c6dad93a2c064f64b9c18f825e32cca8e85934a890862b702437
MD5 beb74de8c396192974a32e37c9ec1f5f
BLAKE2b-256 4e3ee2c279c347776845fcd43939605daa6896d80acb0a18523ed9a4f61799a1

See more details on using hashes here.

Supported by

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