Skip to main content

Infrastructure anomaly detection and monitoring tool

Project description

deta

AI Cost Tracking

PyPI Version Python License AI Cost Human Time Model

  • 🤖 LLM usage: $0.1500 (1 commits)
  • 👤 Human dev: ~$200 (2.0h @ $100/h, 30min dedup)

Generated on 2026-04-30 using openrouter/qwen/qwen3-coder-next


Infrastructure anomaly detection and monitoring tool for development environments.

PyPI Version Python License

Features

  • Manifest Scanning: Scans docker-compose, OpenAPI, package.json, and pyproject.toml files up to 3 layers deep
  • Topology Building: Builds service dependency graphs and detects anomalies
  • Real-time Monitoring: Watches for config changes and probes HTTP health checks
  • Anomaly Detection: Detects missing healthchecks, port conflicts, dependency cycles, and hardcoded secrets
  • Toon Format: Generates Semcod-compatible toon output for ecosystem integration
  • CLI Interface: Simple command-line interface with scan, monitor, and diff commands

Installation

pip install deta

Or with optional dependencies:

pip install deta[docker,toml]

Usage

Scan infrastructure

deta scan /path/to/project --depth 3 --output infra-map.json

Monitor in real-time

deta monitor /path/to/project --interval 30 --depth 3

Compare with baseline

deta diff --baseline infra-map.json /path/to/project

Python API

from pathlib import Path
from deta import build_topology

# Build topology from manifests
topology = build_topology(Path("/path/to/project"), max_depth=3)

# Detect anomalies
anomalies = topology.detect_anomalies()
for anomaly in anomalies:
    print(f"{anomaly['severity']}: {anomaly['type']}")

# Export to JSON
import json
output = json.loads(topology.to_json())

Architecture

deta/
├── scanner/          # Manifest parsing
│   ├── compose.py    # docker-compose.yml
│   ├── openapi.py    # OpenAPI specs
│   ├── npm.py        # package.json
│   └── python.py     # pyproject.toml
├── builder/          # Topology construction
│   └── topology.py   # Graph & anomaly detection
├── monitor/          # Real-time monitoring
│   ├── watcher.py    # File watching
│   ├── prober.py     # HTTP health checks
│   └── alerter.py    # Colored output
├── formatter/        # Output formats
│   └── toon.py       # Semcod toon format
├── integration/      # Ecosystem hooks
│   └── semcod.py     # sumd, pyqual, vallm
└── cli.py            # Command-line interface

Semcod Integration

deta integrates with the Semcod ecosystem:

from deta.integration import generate_for_sumd, pre_deploy_check

# Generate toon for sumd
generate_for_sumd(Path("."), output=Path("infra.toon.yaml"))

# Pre-deployment validation
passed, issues = pre_deploy_check(Path("."))
if not passed:
    print("Deployment blocked:", issues)

License

Licensed under Apache-2.0.

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

deta-0.2.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

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

deta-0.2.1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file deta-0.2.1.tar.gz.

File metadata

  • Download URL: deta-0.2.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for deta-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3c29a45b66f908b5cfded3dfabe84f1737da82ac57eca4cc9d61e271f92e540c
MD5 e2f6de9249c2aca2fc4ec67e2cfe965f
BLAKE2b-256 a7b904da035af0ccb9e09addc37569fcbac3c483a7aaed699cb83ea9bcd71c4a

See more details on using hashes here.

File details

Details for the file deta-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: deta-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for deta-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f755ebb10b90ad656e9abdd4674f7b275cf46ba707b5a44575172442a17eacaf
MD5 6a389636f041279f7fdafcb9a6225316
BLAKE2b-256 29f27fcb927dd11dddc0ad69867f6ab90a2b66f7b4ffd4a794cf2684c1cdb5f4

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