No project description provided
Project description
Use:
from calltrack import jsonlog
@jsonlog
def f(x: int) -> int:
return x
if __name__ == '__main__':
for i in range(10):
f(i)
This will save a single JSON file containing all the calls to f with some details, in a calltrack_jsonlogs directory.
A custom directory can be specified as follow:
from calltrack import json_calltrack
json_calltrack.save_dir = "path/to/custom/logs/directory"
The logs can be consulted through a streamlit UI. Several files can also be compared one to the other in the UI. To display it in a browser, run the following command in CLI:
$ calltrack-view
By default, this will point to the default logs directory. If a directory was specified by the user, its path should be given as an argument to the command:
$ calltrack-view /path/to/custom/logs/directory
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
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 calltrack-0.0.5.tar.gz.
File metadata
- Download URL: calltrack-0.0.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.1 Linux/6.5.0-28-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0d5174af2b213c385c6c82a0bbcb18490878eab5fe65be9cc14b23ca73f074d
|
|
| MD5 |
7215b938df7148d50ee1e373c138516b
|
|
| BLAKE2b-256 |
90b4b4ea53f66371f09f3b6640a33d5e42cc0ee48608b5969966574bc6a4200d
|
File details
Details for the file calltrack-0.0.5-py3-none-any.whl.
File metadata
- Download URL: calltrack-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.1 Linux/6.5.0-28-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1007e0017f669752d6a345542f0ac092706176353580645e1d1182d42eae0ae9
|
|
| MD5 |
dd575dfc3e97972a0578c49287c68c38
|
|
| BLAKE2b-256 |
8ba9bd7dd78e743a7222809952a17588f1f4467165e9c37d9d55b1ac57fc5191
|