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.1

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.1
File Size Uploaded Provenance Actions
photonoxide-0.6.1.tar.gz 4.0 MB With provenance Details for photonoxide-0.6.1.tar.gz

Built distributions (wheels)

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

Total release size: 105.2 MB

Release files / photonoxide-0.6.1.tar.gz

Download URL photonoxide-0.6.1.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ebe2416ab38f1cc6bb71f6c38af9fbf15b0b710d840eed80d9203cdfc320663f
BLAKE2b-256 checksum
How to use checksums
8bd1cdd4959d841851e2443d6c26e794c8d7a7f36cac0e1db5099d81aa6f8b44
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-win_amd64.whl
Size 7.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
f578145a3f5ca087a4e6c6c9d8f6ce4b43ec0aa8af4ca473b82b6cda449bf6d3
BLAKE2b-256 checksum
How to use checksums
bd753acf9c0452b08475bb7c9f4ca5e5be0cad85acffe79740cb8d18ae334716
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 7.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
d512cfe4b4d10c84bc83d4c5fe637f9a40af6a4de0668c3a61198c8ae3243420
BLAKE2b-256 checksum
How to use checksums
1b019ec7eff9361f45e313a1627be4c16100ffceaf55ed48363aff390c2e35dd
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 6.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
86098d029b8848f74deaf2a96dee3b2dfb9ddd84642f60ba6c221d0579a2bef2
BLAKE2b-256 checksum
How to use checksums
74a033cafd5147ec7baa9ef61252ae62ffbf15093058a10917b17dca56f38e14
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
280c026af221fc16fd61e5dbf6223a79ec5992686a9bb7453e3063fbf546530a
BLAKE2b-256 checksum
How to use checksums
c31c18c1e9e085a90d168e11a45bb0bcf2701c515e79891584dc297c6b810c17
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
5ea2db8bbb98dc4ce4b67b000b9d7e93284a8ebaffec6814712645a75697d982
BLAKE2b-256 checksum
How to use checksums
55e52b9dee78a083f8f8226acf8c634972864d25fa6d32856b7212fc9910a961
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 6.5 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bb7bbd3659ea0334a6495dc6831e6244e911e3c93c29b4ed2cbaf81b1ca410a7
BLAKE2b-256 checksum
How to use checksums
fe65b360234141a853185212f1f36d6e7e6287668bbbb69eca7c2e9a4c634c6c
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp314-cp314t-macosx_10_12_x86_64.whl
Size 7.2 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8ab92cb61a113bf67bffda3880e3637475658de7469ebc867b16cf873242824b
BLAKE2b-256 checksum
How to use checksums
5bdde851442c4c5095c0d3832bb820212cb85b28ae70fbcd8e0542f66b86acbf
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-win_amd64.whl
Size 7.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
aac50cbd0947c3b8b819836b4a41ec07892833a3a9a508e6dcec8956081fb2d0
BLAKE2b-256 checksum
How to use checksums
60c04267a5b99f7ab8a8bb1bd09115241418a887f2aa9789b1882cbd2813ddbb
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 7.9 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e8dc0e291302cffb130c184211779b93f7a4a0bf56cacff569fb794409f14130
BLAKE2b-256 checksum
How to use checksums
0c1930929f2afbf55a8d513d74f124537e02a452276cfdf6f575703d58a683a3
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 6.9 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
55367eff299d1e399681cac93dd453c64676d40b760bd2afc83a29056a45299b
BLAKE2b-256 checksum
How to use checksums
59c4f20203b1a91398188e0c89a88e61744b45be9d92be8e9e370ebbe6d3bc0c
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4f47e1cdef7ef143eae0637e22b3e950430f069d182089f461bb047956529760
BLAKE2b-256 checksum
How to use checksums
db8d0e198381e375835906e6ec7b333ed5fb905558ecae29cca1bd99c5d17361
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.8 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
60dcb853960c0a6688ac10bfaabcf69e2b160866dee89a4b39e290ef60e7b608
BLAKE2b-256 checksum
How to use checksums
b8f61c5a091d787318c2b566f1143ab1b37b72279181143530b45bfab148ffe9
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-macosx_11_0_arm64.whl
Size 6.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3c3465b0a3f9f0618748f95e9a176e2a5fe67163eda61cdbdaab4f395306d7d3
BLAKE2b-256 checksum
How to use checksums
1a58d4e66f16efff04f50ca9ee01299c0af962949df23cfed958f6d93daa89fe
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 31, 2026.

Transparency log

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

Download URL photonoxide-0.6.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 7.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
55e054fc6e38ced2150e942b72bafde5e4346073a47eae27a7530d6fd88e2209
BLAKE2b-256 checksum
How to use checksums
e750c5d9f181404377d962b112ede6571ddf7f0b897bbad3e19edc6601fecce3
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 31, 2026.

Transparency log

Security for photonoxide 0.6.1

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.1.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 31, 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