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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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