A lightweight tracing library for python
Project description
easytrace
A very lightweight tracing library for python3, it provides an alternative to attaching a heavy debugger and manually printing out arguments when you enter functions.
Installation
Install from the PyPi project using pip:
pip install easytrace
There are no dependencies required other than Python3!
Usage
First import the trace decorator at the top of your file, setting the logging level as desired. Note, easytrace uses the DEBUG log level by default. Although this can be changed.
from easytrace.trace import trace
import logging
logging.basicConfig(level=logging.DEBUG)
With any function or class method, simp
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
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 easytrace-0.0.2.tar.gz.
File metadata
- Download URL: easytrace-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be8692936e3d45ee095a2a8127a1b705ff995e8a66e0a5b81aa6a9547ce57caa
|
|
| MD5 |
776c959f1220976076b257ecb9e1b44b
|
|
| BLAKE2b-256 |
e0cb3df72f58408ea3efb77cec9f14a408797f9a08b69efff90e54a0aa4c757f
|
File details
Details for the file easytrace-0.0.2-py3-none-any.whl.
File metadata
- Download URL: easytrace-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c622a6aa593540000efafcf948ed611028dc77830e497cd0b9aa1ee4cfc7f3a
|
|
| MD5 |
bae82f10569ab8990e63762392dbc6d0
|
|
| BLAKE2b-256 |
37e1ba3b3613544f8d3574f900bc25f113a7a2b00fefde034e8f62f8eff0cc4b
|