Skip to main content

Calculate word counts in a text file!

Project description

pycounts_pfazlali

Calculate word counts in a text file!

Installation

$ pip install pycounts_pfazlali

Usage

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

from pycounts_pfazlali.pycounts_pfazlali import count_words
from pycounts_pfazlali.plotting_pfazlali 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_pfazlali was created by Paniz Fazlali. It is licensed under the terms of the MIT license.

Credits

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_pfazlali-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_pfazlali-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47eb78210d7d9f26c6395f1ec082daa8ca6d333e96006321badcc123ce242666
MD5 3f5e030094f32f39fe39d649b8b26d1c
BLAKE2b-256 ade8bfef52787f6eb0d1a69465c82725361bda577e82f18f7ae24e82f5554bc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycounts_pfazlali-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86730e413e12a76e8a0e164c38a9475ed1896690971fb2a72426415912bdb86f
MD5 f37c17ee1c01e8c117d7c022685ca7ea
BLAKE2b-256 b34460082ab924969a4fc555954f72f93d8bf804f65183b14ba4ce8cc31374ad

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