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 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_syw-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pycounts_syw-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_syw-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10

File hashes

Hashes for pycounts_syw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b963e1d0540ec8b4eff497d2280be6cd7262277194570f034535f6d2ac558337
MD5 0b2de13ab8f19c30a007703ab67dbc65
BLAKE2b-256 0a44c4da69e0eee6e67b4f226620f5707df453f8e7467d4e544965e6917b4f72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_syw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10

File hashes

Hashes for pycounts_syw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b77cfc76d714f0c8ff7109f1fa4298ca69851296b98190ba16985722d311233
MD5 a8ee9ec089438b17b7e8fb3c8e7132ba
BLAKE2b-256 0d282f7759bff5efba223045ff21ee2f71c463a80e3c890b1d0a53672214ee3b

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