Skip to main content

Calculate word counts in a text file.

Project description

pycounts_ic

Calculate word counts in a text file!

Installation

$ pip install pycounts_ic

Usage

pycounts_ic 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

pycounts_ic-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pycounts_ic-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_ic-0.1.1.tar.gz.

File metadata

  • Download URL: pycounts_ic-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.5.0

File hashes

Hashes for pycounts_ic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aa44b7cf54e3213f27a3ed72cac7e5bd741117672d0514606c24cdb91b3d2f82
MD5 04bb1612622308bb30f787691bc8dff5
BLAKE2b-256 f8a2ef4bc7e612ca63b9c8336d15166cbd5b83eea1d6f1464e27996844c7c49f

See more details on using hashes here.

File details

Details for the file pycounts_ic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycounts_ic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.5.0

File hashes

Hashes for pycounts_ic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9e400b0f5bc715d12c1e517164f14ca902a73104d5ccd23c8af2b0f230f031
MD5 2a5c555d5c73d479e3ddb0922222a511
BLAKE2b-256 980215deec62f385af5e4b858b9acd09256a1a6fcc3c53faa00907824736688a

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