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

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.2
File Size Uploaded Provenance Actions
photonoxide-0.6.2.tar.gz 4.3 MB With provenance Details for photonoxide-0.6.2.tar.gz

Built distributions (wheels)

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

Total release size: 106.5 MB

Release files / photonoxide-0.6.2.tar.gz

Download URL photonoxide-0.6.2.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
7406b81514805139c71cc2b3729c7b37ad2ae3138788dbe5762b26cc1e8d38e2
BLAKE2b-256 checksum
How to use checksums
368330b83591ee57c406ae70be2168969b1667e69ccd8ae1753136309aaaa3ec
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp314-cp314t-win_amd64.whl
Size 7.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
082e89b7df7b54c528c906b8113f1292c263726a286954344df7a72351d27d2f
BLAKE2b-256 checksum
How to use checksums
db7515fbadb8fafadbc44c7fc1010e88dad034f1369ed2accc47c4d65f6ef13b
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 8.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
bab79e50eccd72f2c59d159ff8f9034ac05561d5c2d08fb7a3907bbf4faf5b18
BLAKE2b-256 checksum
How to use checksums
65c309eb9b89a53ab7f095218d117b7c1c0e3c3c68dfe704fbda7f7bfbaa560b
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 7.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
f314728ffd919872bcae141cfcab67b0bc4044de9affde1e67baa7b886a02e00
BLAKE2b-256 checksum
How to use checksums
5b3d175bee9d7def109233ef845c53b9247b7bdbf7ce1167a85141e642b94d5e
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b7a4f9906f6421acb41b2d1d1805fda35cee02750a9efb842935b11ef921bb2d
BLAKE2b-256 checksum
How to use checksums
86ebdf07918e049798fcb6a73b1278f974879a7fab3460ce42aee5e934d64714
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-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
afde65978d19d9607a10ed6e97301e1605baa666cf5f1868137d6405fc988d56
BLAKE2b-256 checksum
How to use checksums
d19940f5fae73753611f8cca690fb39783e1a4c4136f6bfa62c3abbf653f9881
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-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
9ea303b9cbd3d1177f4dbb587e2d86100a05ce7c6877d16f17de032893bcdc82
BLAKE2b-256 checksum
How to use checksums
d3734b66fec5ce1c3faedba089ab0eab4a32fdd098850042b69806a79e22884e
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp314-cp314t-macosx_10_12_x86_64.whl
Size 7.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a4b05e54bd57b0939dbd6b65acca1182ff347d05dc63d8e4529fe6061360986f
BLAKE2b-256 checksum
How to use checksums
a1cb1b2c1e4346d485fe111e56978dc85a79e5dfea09cc59161e794ad628692e
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp310-abi3-win_amd64.whl
Size 7.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
45d183e05b572e370b160eb36d8c163a3da9bde861361145a3ac79a28d4cfdca
BLAKE2b-256 checksum
How to use checksums
3601ed5dd47ba90b2551c91bf2e5c26c8c08dbea776cac1a2e4c62dd5dfa09c0
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 8.0 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
67e2ef108ed8bd751329f43a7801d4f66d535a58d62734770932a3c6f27dbf51
BLAKE2b-256 checksum
How to use checksums
2dfc9bc73977581d3989ce9315f3556597be42b3e7b8a61afc744baa21702747
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp310-abi3-musllinux_1_2_aarch64.whl
Size 7.0 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
1a9b3365c2aff88c62dd9fc5375f3fe5d17e6ca49d0a2456e13ff5e1ad73f270
BLAKE2b-256 checksum
How to use checksums
f0d9b97f16a46d3422a4dcd23022f416e1f070abac55a8ddb129dd5eda322c00
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
208a256ed1d8763d2ce0690d66e71cf8cec3620dc276435b10fda4773040971c
BLAKE2b-256 checksum
How to use checksums
cea2cf95fda2da3ff761c2657bacc523ea07da6ed079e849a841b505b44a0521
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-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
e891934e083ae59fd9ddf63f4da367516fc9ad294b30c0699ee1f388fa032b89
BLAKE2b-256 checksum
How to use checksums
52d6fa9fbbed81a0f198d929e64d52984b9d83636d2c236d1f9fbb18d6c848ea
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-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
d9a80f24a296034891efec5c43cde29305f5be45cb1728aa1f2077e11384c644
BLAKE2b-256 checksum
How to use checksums
ac7c69825c2bf0f92e0774fbec7164044b44511821bcc1b4c5a81ad2c097b31c
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 4, 2026.

Transparency log

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

Download URL photonoxide-0.6.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 7.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c082d0623c389993089152072822fbc03f01ac3e9ff382de2615cf5fc1243aba
BLAKE2b-256 checksum
How to use checksums
71c37cbfc91d0cdb656efd930cb67aad4be4a29b19bbd87b724fec32fbb545aa
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 4, 2026.

Transparency log

Security for photonoxide 0.6.2

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.2.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 4, 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