Metadata-Version: 2.4
Name: tidy3d
Version: 2.10.2
Summary: A fast FDTD solver
License: LGPLv2+
License-File: LICENSE
Author: Tyler Hughes
Author-email: tyler@flexcompute.com
Requires-Python: >=3.10,<3.14
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Provides-Extra: design
Provides-Extra: dev
Provides-Extra: docs
Provides-Extra: extras
Provides-Extra: gdstk
Provides-Extra: heatcharge
Provides-Extra: pytorch
Provides-Extra: ruff
Provides-Extra: scikit-rf
Provides-Extra: tests
Provides-Extra: trimesh
Provides-Extra: vtk
Requires-Dist: PyYAML (>=6.0.3,<7.0.0)
Requires-Dist: autograd (>=1.7.0,<2.0.0)
Requires-Dist: bayesian-optimization (<2) ; extra == "dev" or extra == "design"
Requires-Dist: boto3 (>=1.28.0,<2.0.0)
Requires-Dist: click (>=8.1.0,<9.0.0)
Requires-Dist: cma (>=4.4.1,<5.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: coverage (>=7.13.1,<8.0.0) ; extra == "dev"
Requires-Dist: dask (>=2025.12.0,<2026.0.0)
Requires-Dist: diff-cover (>=10.1.0,<11.0.0) ; extra == "dev"
Requires-Dist: dill (>=0.4.0,<0.5.0) ; extra == "dev"
Requires-Dist: gdstk (>=0.9.49,<0.10.0) ; extra == "dev" or extra == "docs" or extra == "gdstk"
Requires-Dist: grcwa (>=0.1.2,<0.2.0) ; extra == "dev" or extra == "docs"
Requires-Dist: h5netcdf (==1.0.2)
Requires-Dist: h5py (>=3.0.0,<3.15)
Requires-Dist: importlib-metadata (>=6.0.0,<9.0.0)
Requires-Dist: ipython (>=8.38.0,<9.0.0) ; extra == "dev" or extra == "dev" or extra == "docs"
Requires-Dist: jinja2 (>=3.1.2,<4.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: joblib (>=1.5.3,<2.0.0)
Requires-Dist: jupyter (>=1.1.1,<2.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: matplotlib (>=3.10.0,<4.0.0)
Requires-Dist: memory_profiler (>=0.61.0,<0.62.0) ; extra == "dev"
Requires-Dist: mypy (==1.13.0) ; extra == "dev"
Requires-Dist: myst-parser (>=4.0.1,<5.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: nbconvert (>=7.11.0,<8.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: nbdime (>=4.0.2,<5.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: nbsphinx (>=0.8.7,<0.10.0) ; extra == "dev" or extra == "docs"
Requires-Dist: networkx (>=2.6.3,<3.0.0) ; extra == "dev" or extra == "trimesh"
Requires-Dist: numpy (>=2.2.6,<2.5.0)
Requires-Dist: openpyxl (>=3.1.5,<4.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: optax (>=0.2.2,<0.3.0) ; extra == "dev" or extra == "docs"
Requires-Dist: pandas (>=2.2,<3.0)
Requires-Dist: pre-commit (>=4,<5) ; extra == "dev" or extra == "tests"
Requires-Dist: psutil (>=7.2.1,<8.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: pydantic (>=2.0,<3.0)
Requires-Dist: pydata-sphinx-theme (>=0.13.3,<0.16.0) ; extra == "dev" or extra == "docs"
Requires-Dist: pygad (==3.3.1) ; extra == "dev" or extra == "design"
Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
Requires-Dist: pylint (>=4.0.4,<5.0.0) ; extra == "dev" or extra == "tests" or extra == "docs"
Requires-Dist: pyroots (>=0.5.0,<0.6.0)
Requires-Dist: pyswarms (>=1.3.0,<2.0.0) ; extra == "dev" or extra == "design"
Requires-Dist: pytest (>=8.1,<10.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: pytest-cov (>=6.0.0,<7.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: pytest-env (>=1.1.5,<2.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: pytest-timeout (>=2.4.0,<3.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: pytest-xdist (>=3.6.1,<4.0.0) ; extra == "dev" or extra == "tests"
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: responses (>=0.25.8,<0.26.0)
Requires-Dist: rich (>=13.0,<14.0)
Requires-Dist: rtree (==1.2.0) ; extra == "dev" or extra == "trimesh"
Requires-Dist: ruff (==0.11.11) ; extra == "dev" or extra == "ruff"
Requires-Dist: sax (>=0.11,<0.12) ; extra == "dev" or extra == "docs"
Requires-Dist: scikit-rf (>=1.9.0,<2.0.0) ; extra == "dev" or extra == "scikit-rf"
Requires-Dist: scipy (>=1.14,<2.0)
Requires-Dist: shapely (>=2.0,<3.0)
Requires-Dist: signac (>=2.3.0,<3.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx (>=6,<9.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-book-theme (>=1.0.1,<2.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-copybutton (>=0.5.2,<0.6.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-design (>=0.6.1,<0.7.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-favicon (>=1.0.1,<2.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-notfound-page (>=1.1.0,<2.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-sitemap (>=2.5.1,<3.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinx-tabs (>=3.4.7,<4.0.0) ; extra == "dev" or extra == "docs"
Requires-Dist: sphinxemoji (>=0.3.2,<0.4.0) ; extra == "dev" or extra == "docs"
Requires-Dist: tidy3d-extras (==2.10.2) ; extra == "extras"
Requires-Dist: tmm (>=0.2.0,<0.3.0) ; extra == "dev" or extra == "docs"
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: tomlkit (>=0.13.2,<0.14.0)
Requires-Dist: torch (>=2.2.0,<3.0.0) ; (sys_platform != "darwin") and (extra == "dev" or extra == "pytorch")
Requires-Dist: torch (>=2.2.0,<3.0.0) ; (sys_platform == "darwin") and (extra == "dev" or extra == "pytorch")
Requires-Dist: tox (>=4.33.0,<5.0.0) ; extra == "dev"
Requires-Dist: trimesh (>=4.6,<5.0.0) ; extra == "dev" or extra == "tests" or extra == "trimesh" or extra == "heatcharge"
Requires-Dist: typing-extensions (>=4.15.0,<5.0.0)
Requires-Dist: vtk (>=9.2.6,<10.0.0) ; extra == "dev" or extra == "vtk" or extra == "heatcharge"
Requires-Dist: xarray (>=2023.8,<2026.0.0)
Requires-Dist: zizmor (>=1.20.0,<2.0.0) ; extra == "dev"
Project-URL: Bug Tracker, https://github.com/flexcompute/tidy3d/issues
Project-URL: Documentation, https://docs.flexcompute.com/projects/tidy3d/en/latest/
Project-URL: Homepage, https://github.com/flexcompute/tidy3d
Project-URL: Repository, https://github.com/flexcompute/tidy3d
Description-Content-Type: text/markdown

# Tidy3D
[![PyPI
Name](https://img.shields.io/badge/pypi-tidy3d-blue?style=for-the-badge)](https://pypi.python.org/pypi/tidy3d)
[![PyPI version shields.io](https://img.shields.io/pypi/v/tidy3d.svg?style=for-the-badge)](https://pypi.python.org/pypi/tidy3d/)
[![Documentation Status](https://readthedocs.com/projects/flexcompute-tidy3ddocumentation/badge/?version=latest&style=for-the-badge)](https://flexcompute-tidy3ddocumentation.readthedocs-hosted.com/?badge=latest)
[![Tests](https://img.shields.io/github/actions/workflow/status/flexcompute/tidy3d/tidy3d-python-client-tests.yml?branch=develop&style=for-the-badge)](https://github.com/flexcompute/tidy3d/actions/workflows/tidy3d-python-client-tests.yml)
[![License: LGPL-2.1](https://img.shields.io/badge/license-LGPL--2.1-blue?style=for-the-badge)](LICENSE)
[![Ruff](https://img.shields.io/badge/code%20style-ruff-5A4FCF?style=for-the-badge)](https://github.com/astral-sh/ruff)
![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/daquinteroflex/4702549574741e87deaadba436218ebd/raw/tidy3d_extension.json)

[![Notebooks](https://img.shields.io/badge/Demo-Live%20notebooks-8A2BE2?style=for-the-badge)](https://github.com/flexcompute/tidy3d-notebooks)

![](https://raw.githubusercontent.com/flexcompute/tidy3d/main/img/Tidy3D-logo.svg)

Tidy3D is a software package for solving extremely large electrodynamics problems using the finite-difference time-domain (FDTD) method. It can be controlled through either an [open source python package](https://github.com/flexcompute/tidy3d) or a [web-based graphical user interface](https://tidy3d.simulation.cloud).

This repository contains the python API to allow you to:

* Programmatically define FDTD simulations.
* Submit and manage simulations running on Flexcompute's servers.
* Download and postprocess the results from the simulations.

![](https://raw.githubusercontent.com/flexcompute/tidy3d/main/img/snippet.png)

## Installation

### Signing up for tidy3d

Note that while this front end package is open source, to run simulations on Flexcompute servers requires an account with credits.
You can sign up for an account [here](https://tidy3d.simulation.cloud/signup).
After that, you can install the front end with the instructions below, or visit [this page](https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html) in our documentation for more details.

### Quickstart Installation

To install the Tidy3D Python API locally, the following instructions should work for most users.

```
pip install --user tidy3d
tidy3d configure --apikey=XXX
```

Where `XXX` is your API key, which can be copied from your [account page](https://tidy3d.simulation.cloud/account) in the web interface.

In a hosted jupyter notebook environment (eg google colab), it may be more convenient to install and configure via the following lines at the top of the notebook.

```
!pip install tidy3d
import tidy3d.web as web
web.configure("XXX")
```

**Advanced installation instructions for all platforms is available in the [documentation installation guides](https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html).**

### Authentication Verification

To test the authentication, you may try importing the web interface via.

```
python -c "import tidy3d; tidy3d.web.test()"
```

It should pass without any errors if the API key is set up correctly.

To get started, our documentation has a lot of [examples](https://docs.flexcompute.com/projects/tidy3d/en/latest/notebooks/docs/index.html) for inspiration.

## Common Documentation References

| API Resource       | URL                                                                              |
|--------------------|----------------------------------------------------------------------------------|
| Installation Guide | https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html              |
| Documentation      | https://docs.flexcompute.com/projects/tidy3d/en/latest/index.html                |
| Example Library    | https://docs.flexcompute.com/projects/tidy3d/en/latest/notebooks/docs/index.html |
| FAQ                | https://docs.flexcompute.com/projects/tidy3d/en/latest/faq/docs/index.html       |


## FlexAgent MCP

FlexAgent adds an AI-assisted layer on top of Tidy3D via the Model Context Protocol (MCP); read more about [AI-assisted simulation in Tidy3D](https://hs.flexcompute.com/news/ai-assisted-simulation-in-tidy3d-ushering-in-a-new-era-of-photonic-design). Install the `tidy3d-mcp` server when you want that experience inside an MCP client without the Tidy3D extension for [Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and [Cursor](https://open-vsx.org/extension/Flexcompute/tidy3d).

These commands assume [uv](https://docs.astral.sh/uv/getting-started/installation/) is installed on your machine.

**Register the server with your MCP client** - use the block below that matches your CLI.

<details>
<summary>Codex CLI / IDE</summary>

```bash
codex mcp add tidy3d -- uvx tidy3d-mcp --api-key "YOUR_TIDY3D_API_KEY"
```

</details>

<details>
<summary>Claude CLI / Desktop / Code</summary>

```bash
claude mcp add tidy3d -- uvx tidy3d-mcp --api-key "YOUR_TIDY3D_API_KEY"
```

</details>

<details>
<summary>Gemini CLI</summary>

Create or edit `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):

```json
{
  "mcpServers": {
    "tidy3d": {
      "command": "uvx",
      "args": ["tidy3d-mcp", "--api-key", "YOUR_TIDY3D_API_KEY"]
    }
  }
}
```

</details>

<details>
<summary>Cursor CLI / IDE</summary>

Cursor reuses the same schema across the editor and `cursor-agent`. Configure `.cursor/mcp.json` (per-project) or `~/.cursor/mcp.json` (global) and then run `cursor-agent mcp list` to verify:

```json
{
  "mcpServers": {
    "tidy3d": {
      "command": "uvx",
      "args": ["tidy3d-mcp", "--api-key", "YOUR_TIDY3D_API_KEY"]
    }
  }
}
```

</details>


## Related Source Repositories

| Name              | Repository                                      |
|-------------------|-------------------------------------------------|
| Source Code       | https://github.com/flexcompute/tidy3d           |
| Notebooks Source  | https://github.com/flexcompute/tidy3d-notebooks |
| FAQ Source Code   | https://github.com/flexcompute/tidy3d-faq       |


## Issues / Feedback / Bug Reporting

Your feedback helps us immensely!

If you find bugs, file an [Issue](https://github.com/flexcompute/tidy3d/issues).
For more general discussions, questions, comments, anything else, open a topic in the [Discussions Tab](https://github.com/flexcompute/tidy3d/discussions).

## License

[GNU LGPL](https://github.com/flexcompute/tidy3d/blob/main/LICENSE)

