Skip to main content

photonoxide: light meets Rust

photonoxide for Python

photonoxide is photonics design and simulation software written in Rust: a live desktop studio, a Rust library and these Python bindings. Its methods pages derive each solver from the papers it implements, its Academy teaches devices and numerical methods, and its fabrication flows show how a design would be made; every method is checked against an analytic solution or a published result in a validation report. This package brings a part of the library to Python:

  • the materials catalogue: indices with their source, validity range and conditions;
  • waveguide modes: the exact slab, and full-vector modes of a cross-section with their fields;
  • jobs (YAML, TOML or JSON, or a dict), run as the photonoxide program runs them, and an FDFD job's S-parameters;
  • circuits from a netlist given as data, and Touchstone files;
  • the devices of the photonoxide studio's component pages (waveguides, bends, couplers, rings, MMIs, Y-branches, MZIs): their S-parameters, figures, geometry and jobs, the same numbers as the studio's for the same design.
uv add photonoxide          # with uv, in a uv project
uv pip install photonoxide  # or into the active environment; pip install photonoxide works too

Wheels for CPython 3.10 and later on Linux, macOS and Windows; nothing else to install.

import photonoxide as phox

si = phox.refractive_index("si", wavelength_um=1.55).real    # Li 1980
ox = phox.refractive_index("sio2", wavelength_um=1.55).real  # Malitson 1965
for polarization in ("te", "tm"):
    for mode in phox.slab_modes(below=ox, core=si, above=ox, thickness_um=0.22,
                              polarization=polarization, wavelength_um=1.55):
        print(f"{polarization.upper()}{mode.order}: n_eff = {mode.effective_index:.4f}")

It prints TE0: n_eff = 2.8475 and TM0: n_eff = 2.0531.

Units are in the names (wavelength_um, thickness_um), as photonoxide's job files have them; arrays are NumPy's, in C order, with their coordinates; errors are photonoxide's, with its messages. The package's version is the Rust crate's it was built from. The guide: docs/python.md. Every function and class, from the package's docstrings and type stubs: the API reference.

License

MIT or Apache-2.0, at your option.

Metadata

Release files for photonoxide 0.6.3

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

Source distribution (sdist)

Source distribution for photonoxide 0.6.3
File Size Uploaded Provenance Actions
photonoxide-0.6.3.tar.gz 4.9 MB With provenance Details for photonoxide-0.6.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for photonoxide 0.6.3
File Actions
photonoxide-0.6.3-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for photonoxide-0.6.3-cp314-cp314t-win_amd64.whl
photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl
photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 Details for photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl
photonoxide-0.6.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for photonoxide-0.6.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
photonoxide-0.6.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for photonoxide-0.6.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
photonoxide-0.6.3-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for photonoxide-0.6.3-cp314-cp314t-macosx_11_0_arm64.whl
photonoxide-0.6.3-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details for photonoxide-0.6.3-cp314-cp314t-macosx_10_12_x86_64.whl
photonoxide-0.6.3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for photonoxide-0.6.3-cp310-abi3-win_amd64.whl
photonoxide-0.6.3-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for photonoxide-0.6.3-cp310-abi3-musllinux_1_2_x86_64.whl
photonoxide-0.6.3-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for photonoxide-0.6.3-cp310-abi3-musllinux_1_2_aarch64.whl
photonoxide-0.6.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for photonoxide-0.6.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
photonoxide-0.6.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for photonoxide-0.6.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
photonoxide-0.6.3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for photonoxide-0.6.3-cp310-abi3-macosx_11_0_arm64.whl
photonoxide-0.6.3-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for photonoxide-0.6.3-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 118.7 MB

Release files / photonoxide-0.6.3.tar.gz

Download URL photonoxide-0.6.3.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
c1e153dea6e8df6b3f9933e488eb59c77cc8119637ef6006388c518cedab61d5
BLAKE2b-256 checksum
How to use checksums
af0ad15941447d14384ef1999b511624d5eec7ae0b142e56aa51aade5173e271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-win_amd64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-win_amd64.whl
Size 8.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
54f206e2c12c6bedec5dfe8fef1504ef4dc79206dd02b1841a1a1b8fa8b76aee
BLAKE2b-256 checksum
How to use checksums
3e037748818b1bdeaf602bb2b172c4fc56d9d3ce1edb932ee438d0fbf27c4d27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 8.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
7a370ec1e780c17f2c017dd16fbf6c53a9d6e70a8ee5476b7230b6c96eac3f66
BLAKE2b-256 checksum
How to use checksums
fc03b84480f74db58757845eff8f98438a8d9494843ff78e70f2391cf4a8b2cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 7.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
bfd6fbc2ddd43174ae2d1f147b8028a285fb8ef91c3f27fbf78adfa3ea844d39
BLAKE2b-256 checksum
How to use checksums
4135aa9e603617c24bff0a7642eaf2c94177ab2cb187c4a77975cd248dcbca55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
905a223b7e10b112a435f8502be333c5355f5513ae5f234063e147559c01c837
BLAKE2b-256 checksum
How to use checksums
45a46a494bafd7016151e98757e1d8973267bd1ec204f8dadeefee47e63d3c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
44be4d75a6ec45ce0437a2160aeb3bc5011e5a2eca867fbf8b0b7c839bd96108
BLAKE2b-256 checksum
How to use checksums
bea490afb506e169043bd6026293e3add1b8d154903c13eeee8eb6cd46c88c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-macosx_11_0_arm64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-macosx_11_0_arm64.whl
Size 7.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9516f988c0ca29b2b13ac8e2b67eaa0bff4ebad73cc811c810fdae41baf33edb
BLAKE2b-256 checksum
How to use checksums
317ad890cca892f79fb36fa2673f1b205d5f19cfdcc7f08d73971f6d28bb05e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL photonoxide-0.6.3-cp314-cp314t-macosx_10_12_x86_64.whl
Size 8.1 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
96690d39a787a3a66fe877f3a21735f3295f1e71acb434708dfe9c92c324cf26
BLAKE2b-256 checksum
How to use checksums
5709ad031baaf207e7c44afb6dd7e1a307d9e449337169b5294a76b31b99920a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-win_amd64.whl

Download URL photonoxide-0.6.3-cp310-abi3-win_amd64.whl
Size 8.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ac196619a12cbb2588f569ee9ee41b38d6fd3e2ec817595645787f03439aaf9f
BLAKE2b-256 checksum
How to use checksums
271126851fd921c030ba0325977610cbdb65639c611fb7031729a14c8dd716b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL photonoxide-0.6.3-cp310-abi3-musllinux_1_2_x86_64.whl
Size 8.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
2139450f22807465efd9fea3182ddeb9ba91a29f79203dd58efcf20a637ae538
BLAKE2b-256 checksum
How to use checksums
f179395555affec9c07c048cfd5fc026558c4745a20bfd22eab6befc2124d795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL photonoxide-0.6.3-cp310-abi3-musllinux_1_2_aarch64.whl
Size 7.8 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
3614607675bb6100d6b1c6885423907cfde134a4af896e45ea9abda3dc95a00e
BLAKE2b-256 checksum
How to use checksums
6ecd121d1cd936c1c7f1bd1bc711f3013a90e4e7822d0c3310a7cd7a9eadd7a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL photonoxide-0.6.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
175d19ffc786da48af32603404c2b05e8c2c563b15283e304ddf463b4594b731
BLAKE2b-256 checksum
How to use checksums
07b0766a5c645833eb3a7c4fe869bbce6707f3f1e2443b93c2dc63d7fbf519d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL photonoxide-0.6.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
5d39ca226d2162f2a2026ac3bb1ee16ec83a318d078f66cc8307a21e07b6d765
BLAKE2b-256 checksum
How to use checksums
a3ee1d8c442f4841c5fe6152d236cccb77a6ad50616dda3f79ef87e15fbff22d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL photonoxide-0.6.3-cp310-abi3-macosx_11_0_arm64.whl
Size 7.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d550cd6fb3fe6f12baa18168d773c499a8b151c94235d8d18e8f6ab0cf0314d9
BLAKE2b-256 checksum
How to use checksums
330ab9a6a9a45cc661896980e6e75daa7d6570151dc0f5205ae1a2e6da16f5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / photonoxide-0.6.3-cp310-abi3-macosx_10_12_x86_64.whl

Download URL photonoxide-0.6.3-cp310-abi3-macosx_10_12_x86_64.whl
Size 8.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
89ed25d4548ce571e8ac7e7621403f92ff807c9d7e010ae135efb9a67de427a0
BLAKE2b-256 checksum
How to use checksums
39f0daf35bcdd6fadf7ba8b4bc01c8fbf06f6036c5710f87e94f0b2a40977fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for photonoxide 0.6.3

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for photonoxide-0.6.3.tar.gz

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 Nov 9, 2026.

Transparency log

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