Skip to main content

Calculate word counts in a text file

Project description

ccpycounts

Calculate word counts in a text file

Installation

$ pip install ccpycounts

Usage

ccpycounts can be used to count words in a text file and plot results as follows:

from ccpycounts.ccpycounts import count_words
from ccpycounts.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

ccpycounts was created by Caden Chan. It is licensed under the terms of the MIT license.

Credits

ccpycounts 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

ccpycounts-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

ccpycounts-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccpycounts-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.19 Darwin/22.6.0

File hashes

Hashes for ccpycounts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2670752d71cbe2006c6222e851b52a67dc6b2c856ae7921f979167cdbd0310ba
MD5 5181e51a17c60f67560d497ba2bd3d7b
BLAKE2b-256 56dbbc9e5ad90c5d0a895bbf45848f22bcf4f59897c31fad01fe1ea179f8e763

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccpycounts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.19 Darwin/22.6.0

File hashes

Hashes for ccpycounts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f81c097adc0e45868d9793cdca5f29e94aa14f747e4c307095167664ff753613
MD5 ad0ec3e7d248ad51c2a8db5963f2c958
BLAKE2b-256 3431e5c95708ae764c2ad46a2530007284cd99955592da677d9bdd1acd18dc19

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