Skip to main content

Calculate word counts in a text file!

Project description

pycountscjb

Calculate word counts in a text file!

Installation

$ pip install pycountscjb

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

pycountscjb was created by Chris Bayne. It is licensed under the terms of the MIT license.

Credits

pycountscjb 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

pycountscjb-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.

pycountscjb-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountscjb-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.0 Windows/10

File hashes

Hashes for pycountscjb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76c6b2aabfbeb4f999760c16d4d4157cb8a17fc52da261690a9f80ea0b137464
MD5 bc8866946978efa1dd2e311b69af79b8
BLAKE2b-256 aadc1b4aa755207544ccdb47454c84992ccc7de7d33000946fe783e15bd3a58c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountscjb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.0 Windows/10

File hashes

Hashes for pycountscjb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9744ebc5d0dc6dfd4e0081559f60a2b469053a411fe08db409932ca9dbe240
MD5 f3986d5b41cc1c613e638a7f9c5f389b
BLAKE2b-256 d670f696cc2d964be08d83b5f4f72f1a5d8d9b38203e15521c9307aa6aa7f7c9

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