Skip to main content

Calculate word ccounts 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 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_liannahovh-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pycounts_liannahovh-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_liannahovh-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/20.6.0

File hashes

Hashes for pycounts_liannahovh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f7813430f9c4cb080df39ca90e5d5b8cb9afb80e11090c99a4b9d40de86d3ab
MD5 af89762bca114647162e31b10a59bea7
BLAKE2b-256 b531b47c861d2fdbaffab5cf16da58300dac4fa85bdc4853015039b7b4082ca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycounts_liannahovh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e3849c82ae9f5041e5f541620bac803044158738f7a76db3c881830859ca7c1
MD5 bdc9a68332a9f6b4bdbd2c41d64a4a9e
BLAKE2b-256 f8b0a31a3464a38aaac17334f4f48c88012676fbf6e14e64ac03c1cb27c49a18

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