Skip to main content

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:

  1. Deploy and compile a model pipeline.
  2. Start a worker session for that model.
  3. Create a query token (owner/admin step).
  4. In query clients, generate keys and upload evaluation key (EK).
  5. 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.

Metadata

Release files for lattica-studio 0.12.0

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

Built distribution (wheel)

Table of built distributions (wheels) for lattica-studio 0.12.0
File Interpreter ABI Platform Actions
lattica_studio-0.12.0-py3-none-any.whl Python 3 none any Details for lattica_studio-0.12.0-py3-none-any.whl

Release files / lattica_studio-0.12.0-py3-none-any.whl

Download URL lattica_studio-0.12.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0647c37b2a4721c574f685533479e9f5067552a5c3a8589ecdac4e480ecc4b5
BLAKE2b-256 checksum
How to use checksums
bbb2b6505f6460caddb812843a67f1a3205cf2b5a257f0c67208b351a99660c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.12

Security for lattica-studio 0.12.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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