Skip to main content

On-device ML inference monitoring for Python

Project description

WildEdge Python SDK

CI Python Versions Tested on Linux Tested on macOS Tested on Windows Coverage

On-device ML inference monitoring for Python. Tracks latency, errors, and model metadata without any code modifications.

Pre-release: The API is unstable and may change between versions. Semantic versioning will apply from the first stable release.

Install

uv add wildedge-sdk

CLI

Drop wildedge run in front of your existing command. WildEdge instruments the runtime before your code starts. No SDK calls required in user code.

WILDEDGE_DSN="https://<secret>@ingest.wildedge.dev/<key>" \
wildedge run --integrations timm -- python app.py

Validate your environment before deploying:

wildedge doctor --integrations all --network-check

Useful flags:

Flag Description
--integrations Comma-separated list of integrations to activate (or all)
--hubs Hub trackers to activate: huggingface, torchhub
--print-startup-report Print per-integration status at startup
--strict-integrations Fail if a requested integration can't be loaded
--no-propagate Don't pass WildEdge env vars to child processes

SDK

import wildedge

client = wildedge.init(
    dsn="...",  # or WILDEDGE_DSN env var
    integrations=["transformers"],
    hubs=["huggingface"],
)

# models loaded after this point are tracked automatically

If no DSN is configured, the client becomes a no-op and logs a warning.

init(...) is a convenience wrapper for WildEdge(...) + instrument(...).

Supported integrations

On-device

Integration Example
transformers transformers_example.py
mlx mlx_example.py
timm timm_example.py
gguf gguf_example.py
onnx onnx_example.py
ultralytics -
tensorflow tensorflow_example.py
torch pytorch_example.py
keras keras_example.py

Remote models

Integration Example
openai openai_example.py

Hub tracking

Pass hubs= to track model download provenance. Hubs are framework-agnostic and can be combined with any integration.

Hub Tracks
huggingface Downloads via huggingface_hub
torchhub Downloads via torch.hub

For unsupported frameworks, see Manual tracking.

Configuration

Parameter Default Description
dsn - https://<secret>@ingest.wildedge.dev/<key> (or WILDEDGE_DSN). If unset, the client is a no-op.
app_version None Your app's version string
app_identity <project_key> Namespace for offline persistence. Set per-app in multi-process workloads (or WILDEDGE_APP_IDENTITY)
enable_offline_persistence true Persist unsent events to disk and replay on restart
sampling_interval_s 30.0 Seconds between background hardware snapshots. Set to 0 or None to disable (or WILDEDGE_SAMPLING_INTERVAL_S)

For advanced options (batching, queue tuning, dead-letter storage), see Configuration.

Projects using this SDK

Name Link
agntr github.com/pmaciolek/agntr
(your project here) -

Using WildEdge in your project? Open a PR to add it to the list.

Privacy

Report security & priact issues to: wildedge@googlegroups.com.

Links

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

wildedge_sdk-0.1.3.tar.gz (140.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wildedge_sdk-0.1.3-py3-none-any.whl (106.3 kB view details)

Uploaded Python 3

File details

Details for the file wildedge_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: wildedge_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 140.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wildedge_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 95f38b5a111d9a13099b3d5f39b589c113ff044d99c9f89cdbba71395e5ca65d
MD5 350ecec1ebfc2f6a26091646451201d8
BLAKE2b-256 ca22ff17779cd36a711cee8152476e3e70576a29e59f612cde6e93039defad0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for wildedge_sdk-0.1.3.tar.gz:

Publisher: release.yml on wild-edge/wildedge-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wildedge_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wildedge_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 106.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wildedge_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61444cc9ebbb519da7537a458c9dff2ca0cd92f4c942d2ae195e78b4744fab0a
MD5 bb22c887ef3162e85e7da9da59368c13
BLAKE2b-256 3d5cc6c6757ceb667b371be5d29ce9b88ca0825f24a22c71592c1a221dcd21a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wildedge_sdk-0.1.3-py3-none-any.whl:

Publisher: release.yml on wild-edge/wildedge-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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