---
title: Operon Mitochondria
emoji: "\u26A1"
colorFrom: green
colorTo: yellow
sdk: gradio
sdk_version: "6.5.1"
app_file: app.py
pinned: false
license: mit
short_description: Safe calculator with AST-based parsing -- no injection risk
---

# Operon Mitochondria -- Safe Calculator

AST-based expression parsing with zero code injection risk. Expressions are parsed into an abstract syntax tree and only whitelisted operations execute.

Four metabolic pathways:
1. **Glycolysis** -- Safe arithmetic (sqrt, sin, pi, factorial, ...)
2. **Krebs Cycle** -- Boolean and comparison logic
3. **Beta Oxidation** -- JSON and Python literal parsing
4. **Auto-detect** -- Mitochondria picks the right pathway

Includes ROS (Reactive Oxygen Species) tracking -- errors accumulate damage, and mitophagy repairs dysfunction.

No API keys required -- runs entirely locally.

[GitHub](https://github.com/coredipper/operon) | [Paper](https://github.com/coredipper/operon/tree/main/article)
