Skip to main content

Calculate word counts in a text file !

Project description

pycounts_ugo

Calculate word counts in a text file !

Installation

$ pip install pycounts_ugo

Usage

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

from pycounts_ugo.pycounts_ugo import count_words
from pycounts_ugo.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_ugo was created by Ugochukwu Onyebuchi. It is licensed under the terms of the MIT license.

Credits

pycounts_ugo 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_ugo-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_ugo-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_ugo-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for pycounts_ugo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8f142b1fd498670d76c908d4531197805b847d074ad170e494893a75dbc6630
MD5 f03a058931ea42edb36247079cad2c6c
BLAKE2b-256 735d9c853750acb20b1445f6d4a169feb497c71098cfae3039ccf842d67829e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_ugo-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.2.2 CPython/3.8.10 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for pycounts_ugo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb975a9eb4215fc716f003f737f0d3a3d5b14a03d03e9baf17514c4cce1f12e0
MD5 9969428cce6f583125e665513bc5c5d0
BLAKE2b-256 0df5958b16cd4a9792b144cddbe06cc3672267b8101858cb8145fb06f9f0ef22

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