Tesseract Core
Universal components for differentiable scientific computing 📦
Read the docs | Showcases & tutorials | Report an issue | Community forum | Contribute
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 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 that is one jax.grad call away from end-to-end gradients.
Quick start
Getting started: install, build an example, and run it.
CLI:
# Install Tesseract Core
$ pip install tesseract-core
# Create a new project in the current directory
$ tesseract init --name my-tesseract
# Edit `tesseract_api.py`, or download an example
$ curl -so ./tesseract_api.py https://raw.githubusercontent.com/pasteurlabs/tesseract-core/main/examples/vectoradd/tesseract_api.py
# Build it into a container
$ tesseract build .
# Run it
$ tesseract run my-tesseract apply '{"inputs": {"a": [1, 2, 3], "b": [10, 20, 30]}}'
# → {"result": [11, 22, 33]}
# Compute the Jacobian
$ tesseract run my-tesseract jacobian '{"inputs": {"a": [1, 2, 3], "b": [10, 20, 30]}, "jac_inputs": ["a"], "jac_outputs": ["result"]}'
# → {"result": {"a": [[1, 0, 0], [0, 1, 0], [0, 0, 1]]}}
Python SDK:
from tesseract_core import Tesseract
with Tesseract.from_image("my-tesseract") as t:
result = t.apply({"a": [1, 2, 3], "b": [10, 20, 30]})
jac = t.jacobian({"a": [1, 2, 3], "b": [10, 20, 30]}, jac_inputs=["a"], jac_outputs=["result"])
Core features
- Containerized — Docker-based packaging ensures reproducibility and dependency isolation.
- Multi-interface — Use the same components via CLI, REST API, and Python SDK.
- 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.
- Self-documenting — Auto-generated API docs and schemas for every Tesseract (
tesseract apidoc <name>).
Auto-generated API documentation (tesseract apidoc).
The Ecosystem
- Tesseract Core — CLI, Python SDK, and runtime (this repo).
- Tesseract-JAX — Embed Tesseracts as JAX primitives into end-to-end differentiable JAX programs.
- Tesseract-Torch — Embed Tesseracts as PyTorch operators into end-to-end differentiable PyTorch programs.
- Tesseract-Streamlit — Auto-generate interactive web apps from Tesseracts.
Learn more
- Documentation
- Creating your first Tesseract
- Differentiable programming guide
- Design patterns
- Example gallery
Citing Tesseract
If you use Tesseract in your research, please cite:
@article{TesseractCore,
doi = {10.21105/joss.08385},
url = {https://doi.org/10.21105/joss.08385},
year = {2025},
publisher = {The Open Journal},
volume = {10},
number = {111},
pages = {8385},
author = {Häfner, Dion and Lavin, Alexander},
title = {Tesseract Core: Universal, autodiff-native software components for Simulation Intelligence},
journal = {Journal of Open Source Software}
}
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.
Release files for tesseract-core 1.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tesseract_core-1.13.0.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tesseract_core-1.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / tesseract_core-1.13.0.tar.gz
| Download URL | tesseract_core-1.13.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4e8fe68064827288b29254cfae2a020d663410c990fe3a76ec836c972fe3204
|
|
BLAKE2b-256 checksum How to use checksums |
8ab34ab65d9d89bd0aea3fb71e0600db3f36a5e943063f3f1af170d0f933194a
|
| 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 Sep 16, 2026.
Transparency logRelease files / tesseract_core-1.13.0-py3-none-any.whl
| Download URL | tesseract_core-1.13.0-py3-none-any.whl |
|---|---|
| Size | 216.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e6328d86bfc68a83565f29ad73d1a3ee1761407f9e478b5b70a043f510d8d74
|
|
BLAKE2b-256 checksum How to use checksums |
3af691673a28968e89d18062c132569baeff9568bfb7e4e85327a6f11310f956
|
| 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 Sep 16, 2026.
Transparency log