Skip to main content

edgelens-sdk — Python client for the EdgeLens Edge AI Device Farm

The base Python client used by all Python EdgeLens integrations (pytest, Robot Framework, MLflow, W&B, the CLI, and the MCP server).

Install

pip install edgelens-sdk

The distribution is edgelens-sdk; the import name is edgelens (from edgelens import EdgeLensClient). The PyPI package named edgelens is an unrelated project and is not this SDK.

Quick Start

from edgelens import EdgeLensClient

client = EdgeLensClient()  # reads EDGELENS_API_KEY from env

with client.create_session(device_type="recamera-2002", os="stock-os") as session:
    session.wait_ready()

    session.device.deploy(model="./models/face_detection.cvimodel")
    session.device.display.play("./test_data/crowd_scene.mp4")

    stats = session.device.inference.run(duration=30)
    assert stats.fps.avg > 15

For reCamaginedOS (raw, customer provides binary):

with client.create_session(device_type="recamera-2002", os="recamagined") as session:
    session.wait_ready()

    # Files land in /userdata/Models/ on reCamaginedOS.
    session.device.deploy(
        model="./build/my_inference",
        files=["./models/my_model.cvimodel"],
    )

    result = session.device.exec(
        "chmod +x /userdata/Models/my_inference && "
        "/userdata/Models/my_inference "
        "--model /userdata/Models/my_model.cvimodel --duration 10"
    )
    assert result.success

On reCamaginedOS, deploy(model=..., files=[...]) places the model and each file in /userdata/Models/ under its base filename. Files arrive readable but not executable: before running a deployed binary, make it executable, e.g. chmod +x /userdata/Models/my_inference.

API Surface

  • EdgeLensClient — entry point, creates sessions
  • Session — session lifecycle (wait_ready, refresh, release)
  • Device — device operations
    • device.deploy() — model deployment
    • device.display.* — display control (play, show, stop)
    • device.inference.* — built-in inference (stock OS only)
    • device.exec() — run commands via SSH
    • device.ssh() — SSH connection details
    • device.info() — device info report
    • device.stream_url() — camera stream URL (stock OS only)

Development

cd core/python
pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for edgelens-sdk 0.2.2

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

Source distribution (sdist)

Source distribution for edgelens-sdk 0.2.2
File Size Uploaded Provenance Actions
edgelens_sdk-0.2.2.tar.gz 20.4 kB With provenance Details for edgelens_sdk-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edgelens-sdk 0.2.2
File Interpreter ABI Platform Actions
edgelens_sdk-0.2.2-py3-none-any.whl Python 3 none any Details for edgelens_sdk-0.2.2-py3-none-any.whl

Total release size: 46.1 kB

Release files / edgelens_sdk-0.2.2.tar.gz

Download URL edgelens_sdk-0.2.2.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a1f6534ee509a844c5a9aea6eeb2e0b20a8c110272fff2001df9139bc39c21a
BLAKE2b-256 checksum
How to use checksums
684682887c819ab8873364705633b0a8f7c539eb3f3cb10815305dfa7140da7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / edgelens_sdk-0.2.2-py3-none-any.whl

Download URL edgelens_sdk-0.2.2-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e240373be73a77dcf5dcef94e6731d3e2db496b10f70cd2271a7fcb2a9558c7
BLAKE2b-256 checksum
How to use checksums
5a9fa8142cdcf8037c5990e220572574be3ca7634e376a75d911d5d725eeb040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for edgelens-sdk 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for edgelens_sdk-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files Full provenance

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