semvec/pypi-packages huggingface dataset:
optika 1.0.1
A Python library for simulating optical systems, similar to Zemax
Requires Python: >=3.11

# optika

[![tests](https://github.com/sun-data/optika/actions/workflows/tests.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/sun-data/optika/graph/badge.svg?token=tBcex8q72g)](https://codecov.io/gh/sun-data/optika)
[![Black](https://github.com/sun-data/optika/actions/workflows/black.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/black.yml)
[![Ruff](https://github.com/sun-data/optika/actions/workflows/ruff.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/ruff.yml)
[![Documentation Status](https://readthedocs.org/projects/optika/badge/?version=latest)](https://optika.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/optika.svg)](https://badge.fury.io/py/optika)

A Python library for simulating optical systems, similar to Zemax.

## Installation

Optika can be installed using pip:

```bash
pip install optika
```

## Features
- Sequential raytrace modeling
- Spherical, conical and toroidal surface sag profiles
- Ruled surfaces, constant, variable, and holographic line spacing
- Circular, rectangular, and polygonal apertures
- multilayer reflectivity and transmissivity
- n-dimensional configurations of the optical system using [named-arrays](https://github.com/sun-data/named-arrays)
- uncertainity propagation using [named-arrays](https://github.com/sun-data/named-arrays)

## Example Gallery

[Simulate a Newtonian telescope](https://optika.readthedocs.io/en/latest/_autosummary/optika.systems.SequentialSystem.html#optika.systems.SequentialSystem)
using `optika`

![Newtonian telescope example](https://optika.readthedocs.io/en/latest/_images/optika.systems.SequentialSystem_0_0.png)
![image simulation](https://optika.readthedocs.io/en/latest/_images/optika.systems.SequentialSystem_1_0.png)

Compute the [reflectivity of a multilayer mirror](https://optika.readthedocs.io/en/latest/_autosummary/optika.materials.multilayer_efficiency.html#optika.materials.multilayer_efficiency)
by specifying the materials and thicknesses of the layers.

![multilayer example](https://optika.readthedocs.io/en/latest/_images/optika.materials.multilayer_efficiency_1_1.png)

Model the [quantum efficiency of a backilluminated CCD](https://optika.readthedocs.io/en/latest/_autosummary/optika.sensors.quantum_efficiency_effective.html#optika.sensors.quantum_efficiency_effective)

![QE example](https://optika.readthedocs.io/en/latest/_images/optika.sensors.quantum_efficiency_effective_0_1.png)
happiness1 1.0.0
🎁 A colorful gift box in your terminal - Merry Christmas!
Requires Python: >=3.7
Keywords: christmas, gift, holiday, merry, terminal, ascii, xmas, present

# 🎁 happiness1

A colorful gift box in your terminal. Spread joy this holiday season!

## Installation

```bash
pip install happiness1
```

## Usage

### From terminal

```bash
# Show gift box
happiness1

# Show larger gift box  
happiness1 --large

# Animated unwrapping! 🎁✨
happiness1 --unwrap
```

### From Python

```python
import happiness1  # Shows gift automatically!

# Or manually
from happiness1 import show_gift, show_animated
show_gift()
show_gift(large=True)
show_animated()  # Watch it unwrap!
```

## Preview

```
        ★  ★  ★
     ╔═══════════╗
     ║  ░░░░░░░  ║
   ══╬═══█═══╬══
   ║ ║   █   ║ ║
   ║ ║   █   ║ ║
   ║ ║   █   ║ ║
   ║ ║   █   ║ ║
   ╚═╩═══█═══╩═╝
     ═══════════

   ✦ Merry Christmas! ✦
    Happy Holidays 🎄
```

## License

MIT

---

🎄 **Merry Christmas & Happy Holidays!** 🎁