Lattica Studio
lattica-studio is the control-plane client for Lattica
homomorphic workloads.
It handles model lifecycle operations:
- deploy and compile encrypted pipelines
- start and stop worker sessions
- create and manage query tokens
- coordinate first-time encrypted query setup
Encrypted inference requests are executed by lattica-query after this setup.
Requirements
- Python
>=3.11 - A valid Lattica account license key
Install
Published package:
pip install lattica-studio
Quickstart
Set your license key:
export LATTICA_LICENSE_KEY="<your-license-key>"
Run the end-to-end MNIST example:
python -m lattica_studio.example
The example in lattica_studio/example.py builds a
pipeline artifact, deploys it, starts a worker, creates a token, generates keys,
and sends encrypted queries.
Core workflow
Use this sequence in production and development:
- Deploy and compile a model pipeline.
- Start a worker session for that model.
- Create a query token (owner/admin step).
- In query clients, generate keys and upload evaluation key (EK).
- Send encrypted queries and decrypt responses client-side.
Practical iteration strategy
Worker runtime is billed while active, so keep workers up only when needed.
Recommended staged iteration:
- Stage A (pipeline changes): deploy and compile.
- Stage B (one-time per compiled context): create token, generate keys, register EK.
- Stage C (repeated queries): start worker only for query windows, then stop.
If the pipeline architecture changes, treat it as a new encrypted context: redeploy, create a fresh token, and regenerate keys.
Resource inspection helper
Use the table-printing helper to inspect account resources:
python -m lattica_studio.list_and_display models
python -m lattica_studio.list_and_display workers
python -m lattica_studio.list_and_display tokens
python -m lattica_studio.list_and_display all
list_and_display reads LATTICA_LICENSE_KEY by default, or accepts
--license-key.
More docs
License
Distributed under the Lattica Studio License: internal, non-commercial, research, or evaluation use only.
Copyright (c) LatticaAI Inc. All rights reserved.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lattica_studio-0.1.3-py3-none-any.whl.
File metadata
- Download URL: lattica_studio-0.1.3-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd6cd23a3397147448df1b7012654b5f1c2d96d217c5e4ddb6d555c9aad7abbc
|
|
| MD5 |
ae9f06b2350080f31a9708b4dae2dd35
|
|
| BLAKE2b-256 |
49db9e83810c2f3c5b66752f56f25e2aad427a76c70b0ade7cea43d1bfc28c72
|