Skip to main content

python package for text loading, cleaning and word counting

Project description

pycounts_kw

python package for text loading, cleaning and word counting

Documentation are available here

Installation

$ pip install pycounts_kw

Usage

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

from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "zen.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_kw was created by kellywujy. It is licensed under the terms of the MIT license.

Credits

pycounts_kw 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_kw-0.1.0.tar.gz (3.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_kw-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_kw-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Darwin/21.6.0

File hashes

Hashes for pycounts_kw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfcaa263b18547fe3b9679c3b6953cb1b4610d7b234b3f5905d513f61593bc8b
MD5 0d0b01cb70697c4e21f03de3585e88be
BLAKE2b-256 a5733bb6f9df837f760f0ca4c085f8cf59b93f9c33f118e396a5db6ec4b9efb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_kw-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.3.2 CPython/3.11.1 Darwin/21.6.0

File hashes

Hashes for pycounts_kw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6ed21a56e4b1011c2222e62d02e64d3afe2ca9118fdd20e14a4aacadf14d3f2
MD5 7040df920dc3c3b282dac54a2308703b
BLAKE2b-256 a520f04c622957ece0237c667e314a285386c318c5a7b25320941084efa122a5

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