Skip to main content

lasers

A Python library of laser physics equations for researchers and engineers.

PyPI version Python License: MIT CI

Installation

$ pip install lasers

Usage

import lasers as lz

dnu = lz.spectral_linewidth(linewidth=168e-12, center_wavelength=777.783e-9)
BPP = lz.beam_parameter_product(beam_waist=1.5e-3, divergence=0.5e-3)
m2 = lz.m_squared(beam_parameter_product=BPP, wavelength=1064e-9)
F = lz.peak_fluence(pulse_energy=100e-3, beam_radius=1e-2)

Overview

lasers is a Python library for laser physicists and optical engineers, providing well-documented implementations of equations and computational tools commonly encountered in laser science and engineering.

The design philosophy prioritizes accessibility to scientists over software convention. Function signatures and parameter names reflect the terminology established in standard references — Siegman, Saleh & Teich, Boyd — so that the interface reads naturally to anyone trained in the field. Inputs and outputs use SI units throughout.

lasers is intended to serve both interactive and programmatic use cases. Individual functions support rapid estimation and verification during experimental work, while the broader API accommodates integration into parameter studies, system-level models, and automated analysis pipelines.

The library is under active development. Its scope will continue to expand to reflect the breadth of analytical methods used across the optics and photonics community. Contributions, feature requests, and domain expertise are welcomed.

Contributing

Bug reports and feature requests are welcome via GitHub Issues.

Development

pip install -e ".[dev]"

Citation

If you use this package in published work, please cite it:

@software{teichmann_lasers,
  author  = {Teichmann, Tyler},
  title   = {lasers: A Python library of laser physics equations},
  url     = {https://github.com/tylerteichmann/lasers},
  version = {0.0.2},
}

Authors

Tyler Teichmann

License

MIT — see LICENSE.

Release files for lasers 0.0.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 lasers 0.0.3
File Size Uploaded
lasers-0.0.3.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lasers 0.0.3
File Interpreter ABI Platform
lasers-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / lasers-0.0.3.tar.gz

Download URL lasers-0.0.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1824db6254d80d77162e24d9d0d97fb2d984e908a2185500cd11359e2a995fee
BLAKE2b-256 checksum
How to use checksums
5322732a31ed6058b755f7d9d371e42b6fd28a20ef12f15acf2779845118ffcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / lasers-0.0.3-py3-none-any.whl

Download URL lasers-0.0.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d05819f3561e6eea406d1ad2684bbf47b9ccd427865b9536d09411642919f5ad
BLAKE2b-256 checksum
How to use checksums
20a5cd4e4233c125ab384877c26b957e4935995774399cc9452833aeb5e69682
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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