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.4.0.tar.gz (86.5 kB view details)

Uploaded Source

Built Distribution

pycountsik-0.4.0-py3-none-any.whl (87.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycountsik-0.4.0.tar.gz
  • Upload date:
  • Size: 86.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pycountsik-0.4.0.tar.gz
Algorithm Hash digest
SHA256 889d5e1bcd4ede7ee08b1e1765c28a9cf59514592c549b667f95aa60ca0e1725
MD5 64198007467f7231bb9e5f1de66bfa05
BLAKE2b-256 247a3b00e1d26064bb2b2c2278df1e00c9245164aac4b04a1af6508a7dec67ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycountsik-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 87.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pycountsik-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 713b31d7571ee477a8b9db2f6da8bb59cadce60777ffd87dc5b31e45e724144e
MD5 28ef7ed7f7591fab0d7a623d382c37f7
BLAKE2b-256 8b1cc1b6e5e441e3d6c8c04136670272d12da27588531805d493344ca4a4aff8

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