Skip to main content

Calculate word counts in a text file!

Project description

pycounts_gn385x

Calculate word counts in a text file!

Installation

$ pip install pycounts_gn385x

Usage

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

from pycounts_gn385x.pycounts_gn385x import count_words
from pycounts_gn385x.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_gn385x was created by Giang Nguyen. It is licensed under the terms of the MIT license.

Credits

pycounts_gn385x 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_gn385x-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_gn385x-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_gn385x-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d542a4219a34c434bdab080308a5a1f881fb90b5877dec2c58d008c29fa11341
MD5 034c6968e5132291fdb208d7441cc093
BLAKE2b-256 b69d014846702497e01817cd95a6fccc40a574ac6a633ba38b606a4385b8750b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_gn385x-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.12 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for pycounts_gn385x-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3472505e82b56bc703823bd2186b54f9f825dc64b6ae5aba72e604c1f860436c
MD5 8746225d938548327e5337a5942c930e
BLAKE2b-256 f3650b3da409071c2d06c841bfc8fddcee5d54002a15ada200ed4ff9dda725b6

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