Skip to content

Python package to annotate print statements in provided input script.

License

Notifications You must be signed in to change notification settings

saikotek/printannotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Python package to annotate print statements in provided input script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages