ImHere, simple log for simple debug
Project description
ImHere
simple log for simple debug
ImHere is an alternative of a simple print for debugging.
Return print with:
- Timestamp
- File name
- Context (function or class)
- Line of code
- Variable mame
- Variable value
Get started
from imhere import ImHere
imhere = ImHere()
def function():
variable = 97
imhere.log(variable)
#[2021-11-26 19:44:50] test.py\function\line 6\variable:97
Change default settings
from imhere import ImHere, separator
imhere = ImHere(
spr=separator.ARROW,
timestamp=True,
time_format="%y-%m-%d %H:%M:%S"
)
def function():
variable = 97
imhere.log(variable)
#[21-11-26 19:44:50] test.py->function->line 6->variable:97
Settings separator:
SLASH = '/'
BACKSLASH = '\\'
POINT = '.'
VERTICAL_BAR = '|'
HYPHEN = '-'
UNDERSCORE = '_'
ARROW = '->'
To disable the timestamp print, set timestamp=False
To change format timestamp, set time_format=formatTimestamp
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
imhere-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imhere-0.1.0.tar.gz.
File metadata
- Download URL: imhere-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df4d1b17e4f0377f8547709a13f1ed8bec2f4ea1fbec4b1502f4b3b2bf319631
|
|
| MD5 |
688e390fd4776be1b5da2b40baad29aa
|
|
| BLAKE2b-256 |
a05be69a08635684b6dd39f51422e96e6ac8402296d34c403898b221f4af4eeb
|
File details
Details for the file imhere-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imhere-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d16dac4acd1cf50de25fb238664a37e5b99044017e4c013c6e46242b27670c4
|
|
| MD5 |
ad3a97b332155534c9d0038d7077d80e
|
|
| BLAKE2b-256 |
8fe9d29800d5a634e33ce74976045a8034cca6b1e4c715bc6eeb07ff9a8fa668
|