Skip to main content

DetaMetricsSDK

A Python SDK for interacting with my TensorBoard alternative that runs on Deta Space.


Installation

pip install detametrics

Usage

All API classes need an URL ID, which can be gotten from the app UI.

They also need a Deta Space App API key, which can be gotten from...

  • Click the 3 dots on the app on your Deta Space Canvas
  • Click "Keys"
  • Add an API Key, and input it in the box on the App UI and in your Python code as seen below

TensorFlow Callback

Requires Tensorflow to be installed.

from detametrics.tf import DetaMetricsTFCallback

# use in your keras model
model = ...
model.fit(
  ..., # other params here
  callbacks=[DetaMetricsTFCallback("MY_URL_ID", "MY_API_KEY")]
)

Base API

Get your URL id from the UI on the Deta Space app.

from detametrics import DetaMetrics

metrics = DetaMetrics("MY_URL_ID", "MY_API_KEY")
metrics.clear() # WARNING: clears all past metrics

metrics.set("GraphName", "LineName", 0.1)
metrics.set("GraphName", "LineName", 123.45)
metrics.set("GraphName", "LineName", 78.9)

Metadata

Release files for DetaMetrics 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DetaMetrics 0.0.7
File Size Uploaded
DetaMetrics-0.0.7.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DetaMetrics 0.0.7
File Interpreter ABI Platform
DetaMetrics-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / DetaMetrics-0.0.7.tar.gz

Download URL DetaMetrics-0.0.7.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8351da7236d3a4026bc8509d8a44f494c088f9ad57bba586eb0e247475ddb78d
BLAKE2b-256 checksum
How to use checksums
3d0e9bf965e275a5d2e998f8262d5eb08dbc509dc07425d321427ba88a07c2ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / DetaMetrics-0.0.7-py3-none-any.whl

Download URL DetaMetrics-0.0.7-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b641c7660c14c9e9606a77939102196826f0da84c827ef92401ed88af5da8ff
BLAKE2b-256 checksum
How to use checksums
0fe6962d888e266ec96fe5ea6b8ce2d39669a3601ddf8016b0cec5e380fe99cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page