Skip to main content

This package consists of a function that can be used to count the number of words in a text file.

Project description

pycounts_amm

This package consists of a function that can be used to count the number of words in a text file.

Installation

$ pip install pycounts_amm

Usage

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

from pycounts_amm.pycounts_amm import count_words
from pycounts_amm.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_amm was created by Abdul Moid Mohammed. It is licensed under the terms of the MIT license.

Credits

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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_amm-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_amm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe491caf6500ee15b4a4fc8a6d305ce06b8753aebf7a078e77a7141fbb39f3f1
MD5 b3166db158bfdce92a8fef4dbf4687e1
BLAKE2b-256 d832d9a8f9fcc8db4f966139637f24b8493ee243f9b4d989f217c5ad225d7ca1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_amm-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_amm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3975232237c91c32ac01c0f95587309f2c0dec437d19f684b5d28b38b031b9a6
MD5 d98a18bb7638254d890622425fbe5e56
BLAKE2b-256 ef300320df9fc9076378757fe2d6f1cfa045fac3eb84f92351d6cb1e3068a169

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