Skip to main content

lucen-sdk — the MouseMouse API client for Python

The typed client for the MouseMouse REST API, generated from the hub's OpenAPI contract (served by every hub at /openapi.yaml, browsable at mousemouse.ai/docs/api) with openapi-python-client. One module per operation, one attrs class per schema; httpx underneath.

This is the layer the lucen command line (lucen-cli) and the MCP server (lucen-mcp) are built on. If you want to script the hub, from lucen import Hub in lucen-cli is the friendlier surface; use this package when you want the contract itself.

pip install lucen-sdk      # or: uv add lucen-sdk
from lucen_sdk import AuthenticatedClient, Client
from lucen_sdk.api.auth import get_me
from lucen_sdk.api.repos import get_repo, list_repos
from lucen_sdk.models import RepoKind

public = Client(base_url="https://api.mousemouse.ai")
robot = get_repo.sync("lucen", "laika", client=public)          # public repos need no key

hub = AuthenticatedClient(base_url="https://api.mousemouse.ai", token="lucen_sk_...")
me = get_me.sync(client=hub)
page = list_repos.sync(client=hub, kind=RepoKind.MODEL, limit=20)

Every operation has sync, sync_detailed (the Response with status and headers), asyncio and asyncio_detailed. Errors are RFC 9457 Problem objects; a private resource is 404, never 403. Keys are scoped read ⊂ write ⊂ train, and some operations are session-only (a key of any scope is refused: minting keys, approving a policy onto a robot).

The version follows the contract: a new minor is a breaking change to the generated surface, a patch adds operations or fields. Regenerated by the hub's make sdk; never hand-edited.

Changelog

  • 0.1.1 (2026-10-18): the contract's additions since 0.1.0, all additive: workerHealth (GET /healthz/worker) and listExternalDatasets; how a hosted endpoint is billed (EndpointCostBasis, billed_seconds) and why it stopped (EndpointReport.stop_reason); the Usage page's month and buckets; RobotCard.provenance; the robot check's proposed gains; the policy a dataset was recorded with.
  • 0.1.0: the first release on PyPI.

Apache-2.0. © 2026 Lucen Robotics.

Metadata

Release files for lucen-sdk 0.1.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 lucen-sdk 0.1.2
File Size Uploaded Provenance Actions
lucen_sdk-0.1.2.tar.gz 557.6 kB With provenance Details for lucen_sdk-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lucen-sdk 0.1.2
File Interpreter ABI Platform Actions
lucen_sdk-0.1.2-py3-none-any.whl Python 3 none any Details for lucen_sdk-0.1.2-py3-none-any.whl

Total release size: 1.8 MB

Release files / lucen_sdk-0.1.2.tar.gz

Download URL lucen_sdk-0.1.2.tar.gz
Size 557.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c4fd34790d3f552b8fd91bb78d2daccb464eb011cf83664edc700159ca4656d4
BLAKE2b-256 checksum
How to use checksums
9252a5aa038d119813b41ffeca6bc4ef35330541d3cb349b1cbdc91324fdb6c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

Release files / lucen_sdk-0.1.2-py3-none-any.whl

Download URL lucen_sdk-0.1.2-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dff7e39c043d97d7806d9232ad1629b2a1559e0901950e675db736f2b88d98b7
BLAKE2b-256 checksum
How to use checksums
14960ca0bd3b3fe87684a1147e010d64f7612280917879ef961eda072a02564e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

Security for lucen-sdk 0.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lucen_sdk-0.1.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 20, 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.

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