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) andlistExternalDatasets; 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lucen_sdk-0.1.1.tar.gz | 517.2 kB | With provenance | Details for lucen_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lucen_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lucen_sdk-0.1.1-py3-none-any.whl |
Total release size: 1.7 MB
Release files / lucen_sdk-0.1.1.tar.gz
| Download URL | lucen_sdk-0.1.1.tar.gz |
|---|---|
| Size | 517.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02074f0d8c0b237901f34e23edefd7497c02f39d3c8a7d9faf2829c11ae42f6b
|
|
BLAKE2b-256 checksum How to use checksums |
92844f999457bd689c4a9edff26fa2d415137df902473c5f01b29fc0547a3f4d
|
| 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 18, 2026.
Transparency logRelease files / lucen_sdk-0.1.1-py3-none-any.whl
| Download URL | lucen_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
093fa4bd2fc12db8d7d0d20601a8e785583db6b0b4dbf0c09d10db2b3955d76c
|
|
BLAKE2b-256 checksum How to use checksums |
b7010f8db09a30ea5295842b7f823373af95d8c47e97823b803a9621021e5ea1
|
| 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 18, 2026.
Transparency logSecurity for lucen-sdk 0.1.1
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.
Attestation for lucen_sdk-0.1.1.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 18, 2026.
Transparency logA 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.