Skip to main content

A package to annotate print statements in provided script.

Project description

printannotate

A Python package to annotate print statements with encoded information about the calling script and line number.

CI Latest Release

Example

Input

print(f"i: {i:_}")
print(f"f: {f:.2f}")
print(f"f: {f:.0f}")
print(f"f: {f:_.2f}")

Output

# number formatting
print(f"i: {i:_}") # i: 1_000_000_000
print(f"f: {f:.2f}") # f: 10123.14
print(f"f: {f:.0f}") # f: 10123
print(f"f: {f:_.2f}") # f: 10_123.14

Installation

You can install the package using pip:

pip install printannotate

Usage

py -m printannotate <script_path>
or
printannotate <script_path>

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

printannotate-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

printannotate-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file printannotate-0.0.1.tar.gz.

File metadata

  • Download URL: printannotate-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for printannotate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d41b7645380f9c2dcc461cd16d29a68d1a1d26a27150df6c4c86f967c5dbd88c
MD5 530b383f8b5e3639bb3234c7f5bff8c7
BLAKE2b-256 53303699120fdfce9fdc10f988dfc5354449916932aa4b64978c4a5cc387c0dd

See more details on using hashes here.

File details

Details for the file printannotate-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: printannotate-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for printannotate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 506fc492e740a9703f18b4e2d0eea9bc16c17ff85d85b7c46846dd58188c2536
MD5 202356ed8f7ef10e0fd51afe982fefe6
BLAKE2b-256 a48d6582437c2708dc98f3229051e01fc76f3f461f490d2ed20c848709cf81b8

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