Skip to main content

Python implementation of the UNIX wc (Word Count) utility

Project description

PYWC

Python implementation of the UNIX wc (Word Count) utility

https://pypi.org/project/ed-pywc/


Installation and Usage

Installation

pip install ed-pywc

Usage

Usage: pywc [OPTIONS] [FILE]

  A Python-based version of the UNIX wc command which counts lines, words, and
  bytes in a file.

  Examples:
      pywc --lines sample.txt      # Counts lines in sample.txt
      pywc --words sample.txt      # Counts words in sample.txt
      pywc --bytes sample.txt      # Counts bytes in sample.txt
      pywc sample.txt              # Counts lines, words, and bytes in sample.txt
      cat sample.txt | pywc        # Pipe the output of another command as input

Options:
  -l, --lines  Count the number of lines in the specified file.
  -w, --words  Count the number of words in the specified file.
  -c, --bytes  Count the number of bytes in the specified file.
  --help       Show this message and exit.

Development Setup

Development Setup


Publish

Publishing to Pypi

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

ed-pywc-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

ed_pywc-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ed-pywc-1.0.0.tar.gz.

File metadata

  • Download URL: ed-pywc-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ed-pywc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3362e90f26e4c8f033ef51dc189a7b9581ec732d53990fa9d031c97979711dde
MD5 cf95d6c4d3244059d51ff6102ec1b7e6
BLAKE2b-256 fd1f878c3401455ac8bb8e6d246a41beedd59e653ce151efc35705754adce8a1

See more details on using hashes here.

File details

Details for the file ed_pywc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ed_pywc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ed_pywc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b03b59cf534c9f72347a17b1124bd2cd296be41f6a417c3b3c4411be23510e
MD5 f1b8e7daeb2a0ebc4408850659fcbc67
BLAKE2b-256 9466e60fe5279bc3f60b20161bdc9259041189cb3eeaa42804650ed22f7d6f99

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