Skip to main content

Client package for running inference queries on the LatticaAI platform (Sunscreen backend)

Project description

Lattica Query Client

A Python client library for securely executing AI inference with homomorphic encryption (HE) on Lattica's cloud platform.

Installation

The package is split into two separate PyPI packages based on the FHE backend. Install only the one you need:

# For LATTICA (GPU-based FHE) - includes lattica-fhe-core, torch, numpy, protobuf
pip install lattica-query

# For SUNSCREEN (CPU-based TFHE) - includes sunscreen-fhe
pip install lattica-query-sunscreen

Note: Only install one package at a time. Both provide the lattica_query module; installing both will cause conflicts.

Usage

Factory Pattern (recommended)

from lattica_query import create_query_client

# Auto-detects scheme based on installed backend (lattica-fhe-core vs sunscreen-fhe)
client = create_query_client(query_token="<your-query-token>")

Direct Import

# LATTICA scheme
from lattica_query import QueryClient
client = QueryClient(query_token="<your-query-token>")

# SUNSCREEN scheme
from lattica_query import QueryClientSunscreen
client = QueryClientSunscreen(query_token="<your-query-token>")

Documentation

See documentation at: https://platformdocs.lattica.ai/

License

Proprietary - (c) Lattica AI See license details in the LICENSE.md file.


For more information, visit https://www.lattica.ai

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lattica_query_sunscreen-1.4.4-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file lattica_query_sunscreen-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: lattica_query_sunscreen-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lattica_query_sunscreen-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2faef4b86e624361f471296fbf6a7bcabc964f5d70248e8e12e8afe146d958e2
MD5 f3947153f844377ae8b293db4b5e944f
BLAKE2b-256 ccf5ba9f4b064bf1b57d7911cd64d0f52ec6b58bfbd64f2a283d7fd8258b5f34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page