Skip to main content

Override print formatter

Project description

installation

python3 -m pip install opprint

usage

op(arg, var=None, format=False, yml=False)

from opprint import op
greeting = 'hello world!'

# basic
op(greeting)

# with label
op('op says...', greeting)

# with standard format
op(greeting, format=True)

# with yaml format
op(greeting, format=True, yml=True)

# with all params
op('op says...', greeting, format=True, yml=True)

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

opprint-1.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

opprint-1.0.3-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file opprint-1.0.3.tar.gz.

File metadata

  • Download URL: opprint-1.0.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for opprint-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fe6579ec9d13897a7aaec99d4d14723d06ad8c4c800bfa2855c35ce5442cd7cc
MD5 8ad35ac277409f4927a597de3103626a
BLAKE2b-256 3071d6ad9a54ad75cb1b77af2151e109a594553cbfd6c192e19b0a490c09916e

See more details on using hashes here.

File details

Details for the file opprint-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: opprint-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for opprint-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 025d8c42cfc6ce9f47a427d91dfbfc0f737f567583a053967ad6847fb53a1c0e
MD5 a3a7ae794187d3ec523141ed963b2c99
BLAKE2b-256 1adb211379c0c4f0cb00018fa60e6201babe3c09714c55acd53eb1d4e13855ae

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