Skip to main content

Calculate word counts in a text file!

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 the 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-0.3.0.tar.gz (85.1 kB view details)

Uploaded Source

Built Distribution

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

pycounts-0.3.0-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

File details

Details for the file pycounts-0.3.0.tar.gz.

File metadata

  • Download URL: pycounts-0.3.0.tar.gz
  • Upload date:
  • Size: 85.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pycounts-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c8697c8addcd56bfb9c0d6cfa3ebe3be5f000a4fe8b0f022debfe812a65be9b8
MD5 2de146732c91c0931b967500d29d80aa
BLAKE2b-256 79cd8ac0d3a9165273d37828b37de3c6cab572ec56b71d3251ebfbbfb28cc238

See more details on using hashes here.

File details

Details for the file pycounts-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pycounts-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 85.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pycounts-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8c5b3bb1de3e26dd088a300bf3467d7317511a10f7afc17b184fa54d8733e5
MD5 bd0292d1eec8a5bffaa8cbc101de89f9
BLAKE2b-256 6edd79f58bd1ee7f1324c2b7776c5f79842527da174d36e458a78953b8eca6c3

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