Skip to main content

No project description provided

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

pycountsik-0.3.0.tar.gz (87.6 kB view details)

Uploaded Source

Built Distribution

pycountsik-0.3.0-py3-none-any.whl (88.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountsik-0.3.0.tar.gz
  • Upload date:
  • Size: 87.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/21.5.0

File hashes

Hashes for pycountsik-0.3.0.tar.gz
Algorithm Hash digest
SHA256 952652e437fe24f7816620120e87c53ebfca28cee894dbc37b5bda6a39f2aa93
MD5 13cfc2d94896be8b166f2058cf9e3a05
BLAKE2b-256 a8a49b01f6bada82c7f5ca4261a8ec0eb0f3902f6cb7e5015d234bcaf22400e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountsik-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 88.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/21.5.0

File hashes

Hashes for pycountsik-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba16ad718f6a5f4a2a3ec13ff78bff58099a8296bb6c432058ce3aa3f11cc33
MD5 1fa5acc3e33aea75666e4c502c16042d
BLAKE2b-256 eadface1ba8a3c9b091e3f480346a2c932f57f9704f89a8eaa5cb6210e721167

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