Skip to main content

counts word counts in a text file

Project description

pycounts_gaurav

counts word counts in a text file

Installation

$ pip install pycounts_gaurav

Usage

pycounts_gaurav can be used to count words in a text file and plot results as follows:

from pycounts_gaurav.pycounts_gaurav import count_words
from pycounts_gaurav.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_gaurav was created by Gaurav Parajuli. It is licensed under the terms of the MIT license.

Credits

pycounts_gaurav 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_gaurav-0.5.0.tar.gz (88.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycounts_gaurav-0.5.0-py3-none-any.whl (89.2 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_gaurav-0.5.0.tar.gz.

File metadata

  • Download URL: pycounts_gaurav-0.5.0.tar.gz
  • Upload date:
  • Size: 88.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pycounts_gaurav-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6b0be39cef99558a70c20fe5777a1f192c8c372f45d25651a0cc557944d24054
MD5 dbe463760c9178325e516112a0b27ebc
BLAKE2b-256 464b7bc654b40c91c39c54f7bea9f7fcb5ebcedc5999a76e8c6ebff4aba195c7

See more details on using hashes here.

File details

Details for the file pycounts_gaurav-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_gaurav-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d46fc83a70852e16982dc60a3fd22a52238b7871dce23cc74800e42a47b7832
MD5 a13b22098e53dba9df4487e6bc44aeca
BLAKE2b-256 566be49ed6b285b04b8e18faa188948c6c475b11083fb2f7d2463e6da2c50a89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page