Skip to main content

photonoxide: validated photonics for Rust

photonoxide for Python

photonoxide is a photonics library in Rust whose every method is checked against an analytic solution or a published result, in a validation report. This package brings a part of it 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.0

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.0
File Size Uploaded Provenance Actions
photonoxide-0.6.0.tar.gz 3.1 MB With provenance Details for photonoxide-0.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 88.9 MB

Release files / photonoxide-0.6.0.tar.gz

Download URL photonoxide-0.6.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a9c2da84d5ee19fc7c168f94b3f03972d8b7db5b6fd248b9e48b034a0549cdaf
BLAKE2b-256 checksum
How to use checksums
82c888bb7c9b8954fd33dcc6022e303aadb86f37cfa50b945dbec9220563cf0a
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-win_amd64.whl
Size 6.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
212846319d47ac0d9a0398c05045740095e4e37a272dd3b2c15285665eb771ab
BLAKE2b-256 checksum
How to use checksums
64798e2f140e7fa3bbb0c39f1b2b2fc458ccfbb12850586ce0271cac12dbbe51
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 6.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
db7c86851b6d146104836523828e6cccb0b2bdde807b64f35cb45b391e3387d9
BLAKE2b-256 checksum
How to use checksums
1a01cbd70c68e3ba0ac3faf87f3cba28996ed4ee2c7136871691ed12ea53f3cd
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 5.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
4e8dc29ce3d2b3a008c1132ec5403310b0a7c7c39b20ffebead02b4c4705d347
BLAKE2b-256 checksum
How to use checksums
69f3dc2861b4de77be00d80a3077b0fe98828ea7928b4121075e569571653567
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ab5b8c45525784b09237c2c942bb8d06b68baeacfd5795acd1cc94104e423c87
BLAKE2b-256 checksum
How to use checksums
5bef81cee8679701bb0f58430713bf288caefbc9e3a765921c8dd103766eb839
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
ce03e2eeb47b8a4608ba011118792813a52c72d16a90b3a8947bca5f75331a03
BLAKE2b-256 checksum
How to use checksums
ef93f0eb0c788d9931d33a57936257a1ec0c95367e9cf19896b84b921b5404ac
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 5.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a833ab716bfcabee5b11390cd996dbb5a935725e831ad5605692d39b0937e6f3
BLAKE2b-256 checksum
How to use checksums
edb9cf3bf0c70ec74fa8979fb135de0222f6e88cd24ca6b3631073e3e4be8f8e
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp314-cp314t-macosx_10_12_x86_64.whl
Size 6.1 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6254330c2b0d10009ce545a192153df6683e94025bbb6f07245fe93665d83175
BLAKE2b-256 checksum
How to use checksums
559d86a522f46bd1ec49479f41c99c327c84530d4c34fd11ea5466bc25b38424
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-win_amd64.whl
Size 6.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3b3961a892497061c3e5316369260ab482e5d00bd6d0376971f7ff468d8676b7
BLAKE2b-256 checksum
How to use checksums
3025a6f6ecc7847da0c0e563fc5401cc95c8b5fc01ce06ed3fb229cf0fefc9e9
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 6.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
00ab952f062da3235e917b5b125d10929fba15307db830bc7dceee53ba53fd51
BLAKE2b-256 checksum
How to use checksums
184b8a443b0d009c9f230ccf66ac6477c5d39655de3a3bb1c8911e92f71e5bd0
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 5.9 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
76bee610cf50a12e219117a51f3fc960811479bba18eca42aa904bc408f2b6f5
BLAKE2b-256 checksum
How to use checksums
01a2e79f4c9eaf1245ee10fcb27d1984a8c633eee75d53e0e9f8b78995f501ce
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
929493e393d175b20ebde9b34c43089f1d4339dc900688161a1ef91f96e8d8a4
BLAKE2b-256 checksum
How to use checksums
2afecbf90ab2d79de1a63eed39713995162c0b872b0c2e71fff02d0f5631eba5
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.7 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
bd586d94f0d78f4354900603ddd1dbf40299fc84359f97bdb9269bd038a546a0
BLAKE2b-256 checksum
How to use checksums
330625e116b4fc62279ebec4191fc0247623c6fed890f5546a3aecc1c7d16d50
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
Size 5.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6de6f7d239a0da6d3c61f848ef932373f1a05f2d5e58f3fc39597ea47a12b7bd
BLAKE2b-256 checksum
How to use checksums
7b5f78d6b9fe5efbaec35ee5c119ea0a19f7236f694b81fa5fad0c9c423ab7f3
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 Oct 26, 2026.

Transparency log

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

Download URL photonoxide-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 6.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
583be51335a87ca18160d660186e9c96060e250fb10a3dd9277427d6f516f586
BLAKE2b-256 checksum
How to use checksums
dc3c924f6e2d498131f49a6784c4d51604863c46cf13d22b15df325f9cd883e1
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 Oct 26, 2026.

Transparency log

Security for photonoxide 0.6.0

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.0.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 Oct 26, 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