Skip to main content

Check Program Bugs Anywhere - Track Your Logs On-the-Go

Project description

Quick Start

  • Install the Python package named livecheck_python using pip.
pip install livecheck_python
  • Import and initialize LiveCheck in your code using the Your ID and Access Key shown on the LiveCheck+ app on your phone. Any bugs (i.e., exceptions) occurring in your code will be notified to your phone with just these two lines.
from livecheck_python import LiveCheck

livecheck = LiveCheck(your_id='', access_key='')
  • Save logs to the cloud over time to track and visualize them on your phone.
livecheck.log(value={'loss': loss, 'val_loss': val_loss, 'accuracy': accuracy, 'val_accuracy': val_accuracy})

User Guide

Constructor

LiveCheck (
    your_id: str,
    access_key: str,
    project_name: Optional[str] = '',
    hyperparams: Optional[dict] = None,
    notification_period: Optional[float] = 0
) -> LiveCheck
your_id required string Your email used to log in to the mobile app
access_key required string An access key shown in your account on the mobile app
project_name optional string Set the project name to make it easier to distinguish logs of different projects on the mobile app
hyperparams optional dictionary Hyperparameters used to train models in the run (e.g., learning rate)
notification_period optional float The time in seconds between two consecutive notifications pushed to your mobile. A larger number means fewer notifications.

Set Project Name

set_project_name (
    value: str
) -> None

Instead of setting project_name when initializing LiveCheck using the constructor function above, you can call livecheck.set_project_name().

Set Hyperparameters

set_hyperparams (
    value: dict
) -> None

Instead of setting hyperparams when initializing LiveCheck using the constructor function above, you can call livecheck.set_hyperparams().

!> Currently, the following types of hyperparameters are supported: int, float, bool, and str.

Set Notification Period

set_notification_period (
    value: float
) -> None

Instead of setting notification_period when initializing LiveCheck using the constructor function above, you can call livecheck.set_notification_period().

Notify Exception

After initializing a LiveCheck object using the constructor function above, any exceptions occurring in your code will be automatically notified to your mobile without needing to do anything else.

Save Logs

log (
    value: dict,
    log_id: Optional[int] = None
) -> None

You can call livecheck.log() after each event (e.g., after each epoch) you want to save logs to check on the mobile app. You can set a custom log_id for each function call. Otherwise, the log_id will start from 1 and automatically increase by 1 after each function call. The logs saved to the cloud by calling this function will be notified and updated to the mobile app on your phone. Two consecutive notifications will be at least 30 seconds apart.

!> Currently, the following types of logs are supported: int, float, bool, and str.

Notices

  • Currently, the following types of logs and hyperparameters are supported: int, float, bool, and str.
  • The maximum number of runs in one day is 1000.
  • The maximum number of logs per run is 1000. If a run has more than 1000 logs, it is automatically separated and saved as a new run.
  • The oldest run will be automatically deleted when a new run is saved to the cloud and the number of runs exceeds 10000.
  • The minimum time between two livecheck.log() function calls is 0.2 seconds.
  • The minimum time between two consecutive notifications to the mobile app on your phone is 30 seconds.

Citation

If you use this for your work, please cite the manuscript mentioned below in the outcomes of your work (e.g., academic papers).

@misc{livecheck,
  title={LiveCheck: Check Program Bugs Anywhere - Track Your Logs On-the-Go},
  author={},
  journal={arXiv},
  year={2024}
}

Contact

Please feel free to contact me at tuan.t.d@ieee.org for inquiries or collaboration opportunities.

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

livecheck_python-1.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

livecheck_python-1.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file livecheck_python-1.0.2.tar.gz.

File metadata

  • Download URL: livecheck_python-1.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for livecheck_python-1.0.2.tar.gz
Algorithm Hash digest
SHA256 03faff14f9ec5eb3e6d273574db49b6101e245cb73ef1890d461c36842e09434
MD5 1a20a766326f0f7cde7355e9841183ad
BLAKE2b-256 3fb3218fed4fc2e56e8b7d02ebaa82cf805320e5bfbe2706b890a3d5318ed1d0

See more details on using hashes here.

File details

Details for the file livecheck_python-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for livecheck_python-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db8e2953c7459ff8e69460320a1f8e3a5d9ef6c04a69dc53f7183dcea72c7591
MD5 0ef2bf5da0771f626450af000354f649
BLAKE2b-256 9019229b848b8450711fd2ee8e74922d138f72a5b23d2f39a176d77ed0fa875e

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