Skip to main content

RayCrafter

Python Version PyPI Version License Build Status codecov Code style: Ruff pre-commit

RayCrafter is an early proof of principle for a lens-level optical design tool. You place off-the-shelf lenses on an optical axis, drag them around, and see the spot diagram, through-focus curve, MTF, ray fan and field curvature update as you go. The ray tracing is done by Optiland.

At present it offers the Thorlabs spherical lenses and ideal (paraxial) lenses, and any number of beams, each with its own width, angle, vergence, offset and wavelength. It can export the system as a Zemax .zmx file and write an HTML report.

Status: pre-alpha. Expect anything to change, including the API.

Install and run

pip install raycrafter
raycrafter

Or, with uv: uvx raycrafter.

An agent-generated project

The code in this repository is written by AI coding agents, working with the project's developers. Due to time constraints, the project is only possible because of agentic coding.

We nonetheless aim for well-designed, readable code that people who use little or no AI can understand and contribute to. The rules the agents follow are in CLAUDE.md, and significant decisions, with their reasons, are recorded in log.md.

Metadata

Release files for RayCrafter 0.0.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 RayCrafter 0.0.2
File Size Uploaded Provenance Actions
raycrafter-0.0.2.tar.gz 333.9 kB With provenance Details for raycrafter-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RayCrafter 0.0.2
File Interpreter ABI Platform Actions
raycrafter-0.0.2-py3-none-any.whl Python 3 none any Details for raycrafter-0.0.2-py3-none-any.whl

Total release size: 542.8 kB

Release files / raycrafter-0.0.2.tar.gz

Download URL raycrafter-0.0.2.tar.gz
Size 333.9 kB
Tags Source
SHA-256 checksum
How to use checksums
134c15266d806469f12a9c9d464f99f5338e25ef43ec6bac948eda0f9e1e873c
BLAKE2b-256 checksum
How to use checksums
c760af21cad05749427e1c02cc969a87711edaf33cfc5e33ade5532bd5ebeff7
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 24, 2026.

Transparency log

Release files / raycrafter-0.0.2-py3-none-any.whl

Download URL raycrafter-0.0.2-py3-none-any.whl
Size 209.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
577ef7b4322c466b14d19ebea7d30c82841733a76bae394ba93f6d7119301fe7
BLAKE2b-256 checksum
How to use checksums
9f0c1853adaa8e92deac0600e36732265808f08c3ed8609808ea4ac2d8b2c6f8
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 24, 2026.

Transparency log

Security for RayCrafter 0.0.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for raycrafter-0.0.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 24, 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