Skip to main content

Using Python as awk alternative

Project description

awpie

logo

Using Python as awk alternative.

Installation

$ pip install awpie

Usage

Upper case all inputs:

$ printf 'apple\norange\n' | awpie 'print(line.upper())'
APPLE
ORANGE

Change orange to banana:

$ printf 'apple\norange\n' | awpie 'print(line) if line != "orange" else print("banana")'
apple
banana

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

awpie-0.1.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

awpie-0.1.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file awpie-0.1.1.tar.gz.

File metadata

  • Download URL: awpie-0.1.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for awpie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d7d8f146b5f01b990d2ab4a658b6c4b9f0d9b748443b95ac6cf957eb69c35847
MD5 df2ec18055d6e60905bb3bf42579fb72
BLAKE2b-256 411e91efb76ec0256030b3fa4fb271fa1734bc02c462e4b5c86ec937c2d9732c

See more details on using hashes here.

File details

Details for the file awpie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: awpie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for awpie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c328772ceb7f590c83949d971681e8f0c4604c9bc577feedcb0e7e696e7388bc
MD5 b5c8fa3afab0e4cf6b7adfb5e6a27328
BLAKE2b-256 9b3a8d2234a23844f468c076c0c14da235992f1f53ac2c235314833b2fd54b20

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