Skip to main content

calculates word count in a text file

Project description

pycountsvt

calculates word count in a text file

Installation

$ pip install pycountsvt

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

pycountsvt was created by Vadim Taskaev. It is licensed under the terms of the MIT license.

Credits

pycountsvt 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

pycountsvt-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pycountsvt-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycountsvt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bdb70b36edec1bdd817800fdc31cbd552ff8fab8bb536bf151b3698fa477dba4
MD5 80ea185983c9ad76b95558501b98cbac
BLAKE2b-256 03b436e080b7c035181521daf6a6ad6c14828fc8c55ec8803d81546577b83313

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycountsvt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43b76d90534307195edad7b4427c7010c097f814c38a6a1cc0da033c10af37e2
MD5 f292d9ef20f53d613258c2a2992dbd04
BLAKE2b-256 4673527096ccefb9b46698555743fb6f298a27ab281cb6f73a097b8bcf608157

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