Skip to main content

Autonomous Runtime Intelligence for Python

Project description

 ██████╗ ██████╗ ██╗  ██╗
██╔═══██╗██╔══██╗╚██╗██╔╝
██║   ██║██████╔╝ ╚███╔╝ 
██║   ██║██╔══██╗ ██╔██╗ 
╚██████╔╝██████╔╝██╔╝ ██╗
 ╚═════╝ ╚═════╝ ╚═╝  ╚═╝

OBX

Autonomous Runtime Intelligence for Python

The first local-first engine that transforms any Python application into a
self-monitoring · self-diagnosing · self-scoring system — in one line.

Python License OBX Score

Stop monitoring. Start understanding.


Why OBX Exists

Modern debugging is reactive.

Something crashes.
You open logs.
You inspect stack traces.
You guess.

OBX changes that.

Instead of only showing what happened, OBX analyzes behavior, detects instability patterns, and produces actionable intelligence about why it happened — and what to fix.


What Makes OBX Different?

Category Question Answered
Monitoring Tools What happened?
Profilers Where is it slow?
Tracing Systems How did the request flow?
OBX Why is this happening — and what should I do?

OBX creates a new DevTools category:

Autonomous Runtime Intelligence


One Line to Activate

from obx import enable
enable()

No dashboards.
No agents.
No config files.
No cloud required.


Core Capabilities

Runtime Intelligence Engine

  • Function call tracing
  • Execution flow awareness
  • Exception interception
  • Behavioral fingerprinting
  • Lightweight runtime sampling

Crash Shield

Intercepts every exception and generates structured diagnostics:

[CRITICAL] Infinite recursion detected
  @ user_service.py:45
  Suggestion: Add a base case or refactor recursive logic

[HIGH] Memory growth anomaly detected
  @ db/session.py:112
  Suggestion: Ensure sessions are properly closed

OBX Health Score

Every execution produces a composite intelligence score:

Stability     94
Performance   88
Logic         91
Risk           8

OBX Index     92.1 / 100

Add a badge to your README:

![OBX Score](https://img.shields.io/badge/OBX%20Score-92%2F100-brightgreen)

Logic Intelligence Engine

Static analysis that detects:

  • Unreachable code
  • Always-true / always-false conditions
  • Deep nesting patterns
  • Identity comparison misuse
  • High complexity functions

Performance Intelligence

  • Function heatmap
  • Bottleneck detection
  • Repeated-call anomaly detection
  • Memory growth monitoring
  • Optimization suggestions

Execution Snapshots

from obx import snapshot

snapshot("before", {"users": count_users()})
run_migration()
snapshot("after", {"users": count_users()})

Modes

enable(mode="dev")      # Full intelligence output
enable(mode="prod")     # Minimal overhead
enable(mode="silent")   # Internal tracking only

CLI

obx run app.py
obx analyze ./src
obx score ./src
obx report --json
obx report --markdown --output report.md
obx doctor
obx benchmark app.py --iterations 5

Architecture

obx/
├── core/
├── runtime/
├── intelligence/
├── performance/
├── logic/
├── shield/
├── recorder/
├── scoring/
├── plugins/
├── reporting/
├── cli/
├── config/
└── benchmarks/

Design Principles

  • Local-first intelligence
  • Actionable insights over raw metrics
  • Minimal runtime overhead
  • Clean modular architecture
  • Fully typed codebase
  • Python 3.8+ compatible

Performance

Mode Estimated CPU Overhead
dev < 3%
prod < 1%
silent < 0.5%

Benchmark locally:

python -m obx.benchmarks.overhead

Privacy & Security

  • No external data transmission
  • No telemetry
  • No analytics
  • Automatic sensitive-key redaction in production mode

Your code never leaves your machine.


Installation

pip install obx-dev

Requirements: Python 3.8+


Roadmap

  • v1.1 — Adaptive sampling tracer
  • v1.2 — Advanced anomaly detection
  • v1.3 — GitHub Action intelligence mode
  • v2.0 — Optional cloud intelligence layer

Contributing

git clone https://github.com/AbdalrhmanReda1/OBX
cd OBX
pip install -e .
pytest tests/

Author

Abdalrhman Reda

GitHub: https://github.com/AbdalrhmanReda1
Telegram: https://t.me/o7_4l


License

MIT License


OBX — Autonomous Runtime Intelligence for Python

Built for developers who want answers — not dashboards.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obx_dev-1.0.1.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obx_dev-1.0.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file obx_dev-1.0.1.tar.gz.

File metadata

  • Download URL: obx_dev-1.0.1.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for obx_dev-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9cd345599c4e049f1d3269083de88491f22a4865f85230c39b0677096650bc4a
MD5 24ea9afdc4e17709eabd7ec00073e64b
BLAKE2b-256 720ca4a62b760fa9bfce58bcc0a857b0a4f46bc20cc6e7c27a3064a2b2997c35

See more details on using hashes here.

File details

Details for the file obx_dev-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: obx_dev-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for obx_dev-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16186dde9bc9f65b6d74febc88276b35b84ec3e3eb9d0aaeaa22e5e9f00a7046
MD5 ab2c3f38e274278d7b1dcb0531a5a3c3
BLAKE2b-256 22ae15078f74c7dc6967582d09f748421a362c92dc11f823606f34028cd839ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page