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.0.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

awpie-0.1.0-py3-none-any.whl (1.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: awpie-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 04a0bbb6abacbe64be30ef29db89de39ccb918098c091fed3596997d1fe533e9
MD5 e7515ad3afe6674d813020d7c7db4dfd
BLAKE2b-256 40990c6b6aff8a175c2dc3053f44659addbf80525a014ce21fcbab6c8c624339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: awpie-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad60b8b24485a1e15a11ae7df19e919f0920df8c5bef3a336774326f7b7a2a3
MD5 2d6780926381ecbf89a4b1796fa83f1d
BLAKE2b-256 61f840c02b3bc33a47455c96195880abe977d241b33f93d13486aa7a06d7c1c8

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