Skip to main content

A toolkit for universal, autodiff-native software components.

Project description

Tesseract Core

Universal, autodiff-native software components for Simulation Intelligence 📦

Read the docs | Report an issue | Community forum | Contribute


DOI SciPy

The problem

Real-world scientific workflows span multiple tools, languages, and computing environments. You might have a mesh generator in C++, a solver in Julia, and post-processing in Python. Getting these to work together is painful. Getting gradients to flow through them for optimization is nearly impossible.

Existing autodiff frameworks work great within a single codebase, but fall short when your pipeline crosses framework boundaries or includes legacy/commercial tools.

The solution

Tesseract packages scientific software into self-contained, portable components that:

  • Run anywhere — Local machines, cloud, HPC clusters. Same container, same results.
  • Expose clean interfaces — CLI, REST API, and Python SDK. No more deciphering undocumented scripts.
  • Propagate gradients — Each component can expose derivatives, enabling end-to-end optimization across heterogeneous pipelines.
  • Self-document — Schemas, types, and API docs are generated automatically.

Who is this for?

  • Researchers interfacing with (differentiable) simulators or probabilistic models, or who need to combine tools from different ecosystems
  • R&D engineers packaging research code for use by others, without spending weeks on DevOps
  • Platform engineers deploying scientific workloads at scale with consistent interfaces and dependency isolation

Example: Shape optimization across tools

The rocket fin optimization case study combines three Tesseracts:

[SpaceClaim geometry] → [Mesh + SDF] → [PyMAPDL FEA solver]
         ↑                                      |
         └──────── gradients flow back ─────────┘

Each component uses a different differentiation strategy (analytic adjoints, finite differences, JAX autodiff), yet they compose into a single optimizable pipeline.

Quick start

[!NOTE] Requires Docker and Python 3.10+.

$ pip install tesseract-core

# Clone and build an example
$ git clone https://github.com/pasteurlabs/tesseract-core
$ tesseract build tesseract-core/examples/vectoradd

# Run it
$ tesseract run vectoradd apply '{"inputs": {"a": [1, 2], "b": [3, 4]}}'
# → {"result": [4.0, 6.0], ...}

# Compute the Jacobian
$ tesseract run vectoradd jacobian '{"inputs": {"a": [1, 2], "b": [3, 4]}, "jac_inputs": ["a"], "jac_outputs": ["result"]}'

# See auto-generated API docs
$ tesseract apidoc vectoradd

Core features

  • Containerized — Docker-based packaging ensures reproducibility and dependency isolation
  • Multi-interface — CLI, REST API, and Python SDK for the same component
  • Differentiable — First-class support for Jacobians, JVPs, and VJPs across component and network boundaries
  • Schema-validated — Pydantic models define explicit input/output contracts
  • Language-agnostic — Wrap Python, Julia, C++, Fortran, or any executable behind a thin Python API

Ecosystem

  • tesseract-core — CLI, Python API, and runtime (this repo)
  • Tesseract-JAX — Embed Tesseracts as JAX primitives into end-to-end differentiable JAX programs
  • Tesseract-Streamlit — Auto-generate interactive web apps from Tesseracts

Learn more

License

Tesseract Core is licensed under the Apache License 2.0 and is free to use, modify, and distribute (under the terms of the license).

Tesseract is a registered trademark of Pasteur Labs, Inc. and may not be used without permission.

Project details


Download files

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

Source Distribution

tesseract_core-1.5.0.tar.gz (39.6 MB view details)

Uploaded Source

Built Distribution

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

tesseract_core-1.5.0-py3-none-any.whl (125.4 kB view details)

Uploaded Python 3

File details

Details for the file tesseract_core-1.5.0.tar.gz.

File metadata

  • Download URL: tesseract_core-1.5.0.tar.gz
  • Upload date:
  • Size: 39.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tesseract_core-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8c1a4029146127bd2515606812f75061d6a8e7203f9f05b830a63d7bfb99ed01
MD5 8a8bbe4363647941d5424e11ef5ddc7a
BLAKE2b-256 2aadd1c5000ad86d35397741dfa26a97cdc10353f55426062275cb9a45b8d87c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tesseract_core-1.5.0.tar.gz:

Publisher: publish.yml on pasteurlabs/tesseract-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tesseract_core-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: tesseract_core-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 125.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tesseract_core-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8657b181171cda14c987a55c7d7ee757eb5d89312c5d736a2291ae5478774a08
MD5 0589a7ac71f4e605f929b2a2cc3fd313
BLAKE2b-256 870b251f4aba97cb5ff6dcfe224ac1668dde214120b28dd9a828c5f03427d874

See more details on using hashes here.

Provenance

The following attestation bundles were made for tesseract_core-1.5.0-py3-none-any.whl:

Publisher: publish.yml on pasteurlabs/tesseract-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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