Skip to main content

Count words from a text file!

Project description

pycounts_zanan_524

Count words from a text file!

Installation

$ pip install pycounts_zanan_524

Usage

Usage

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

from pycounts_zanan_524.pycounts import count_words
from pycounts_zanan_524.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_zanan_524 was created by Zanan Pech. It is licensed under the terms of the MIT license.

Credits

pycounts_zanan_524 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_zanan_524-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

pycounts_zanan_524-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_zanan_524-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.11.11 Windows/10

File hashes

Hashes for pycounts_zanan_524-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69517b5f019a82ee2034ecd0b4dac0f2e2f103e56727967d01d1e62c8f2415fb
MD5 032c45e52321de2a2efa9e24723f0cb0
BLAKE2b-256 24a9d54944668ef13f1a2599600cf836f51fffa114e11263c34febed8e966591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycounts_zanan_524-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11e8156f0feccca13053fa053f8d6e54680c03464490866008c9357f28e8cefa
MD5 0104d842b7144d75d31fc8c6c6ebf310
BLAKE2b-256 e53cde3acebb8cf2de87b4ae3c7cd2266dfd63f364c5cefe888da050b41e1ac9

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