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.
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for printannotate-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506fc492e740a9703f18b4e2d0eea9bc16c17ff85d85b7c46846dd58188c2536 |
|
MD5 | 202356ed8f7ef10e0fd51afe982fefe6 |
|
BLAKE2b-256 | a48d6582437c2708dc98f3229051e01fc76f3f461f490d2ed20c848709cf81b8 |