Skip to content

Python Modules

SmrtHub's Python surface lives under SmrtApps/PythonApp. Each module entry below points at the owning README so you can verify architecture, configuration, and extension hooks without chasing stale copies.

PythonApp (python_core)

Module overview

Top-level package that bootstraps the runtime, wires logging/config defaults, and coordinates service startup for every Python-managed workflow.

Config

Module reference

Configuration seed and schema helpers that mirror Smrt.Config, including path resolution, default rollouts, and atomic updates for Python consumers.

Runtime

Module reference

Runtime orchestration layer that drives clipboard ingestion, routes file fragments through the canonical Documents source tree, emits encounter sidecars, manages job queues, heartbeat publishing, and status surfaces for the Python side of SmrtHub.

Networking

Module reference

Flask-based bridge that exposes HTTP endpoints, browser listeners, and interop shims so Python components stay reachable from C# hosts.

SmrtDetect

Module reference

Detection pipeline built on Magika and heuristics that classifies clipboard sources, recent folders, and file contexts for downstream automation.

SmrtSpace Management

Module reference

Workspace bootstrap and metadata management layer responsible for SmrtSpace directory layouts, persistence, and cross-runtime status exports.

FlowEnhance

Module reference

Automation hooks that drive SmrtSearch and clipboard-driven browser actions, including hotkey listener glue shared with TriggerManager.

Utils

Module reference

Shared utilities covering logging adapters, filesystem helpers, heartbeats, templating, and data access that the rest of the Python packages reuse.