Skip to main content

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

calltrack-0.0.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

calltrack-0.0.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file calltrack-0.0.4.tar.gz.

File metadata

  • Download URL: calltrack-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 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

Hashes for calltrack-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a178b17e8064abfa67ba2c751e39694f7a9c4edddf55660d308f5043023704ba
MD5 ef97293aefe214c4c22468241fe42dd3
BLAKE2b-256 cdea1a05a4d4d56d8175007a250b9abf6910f6126c7064bc065e90eecae5f04d

See more details on using hashes here.

File details

Details for the file calltrack-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: calltrack-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.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

Hashes for calltrack-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52f896c858a214d0628662eeffa5f3a1d48334be2fc7657147876fc3e6d0bd54
MD5 7d2b8070735dd7d7dc9547cbbea6f47a
BLAKE2b-256 132df9fe115fe207aadf4c9f1450743f8f33814524ea447bfcfe07739e84a4d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page