How hassancs91/pyrunner works
PyRun is a self-hosted Python script automation platform. Its principal workflow is browser-based script management followed by manual or scheduled execution, with run history and logs for monitoring. Scheduling and background tasks dispatch execution; environments isolate dependencies. Separate capabilities include encrypted secrets, AI providers, notifications, plugins, data services, vector search, and backups. The graph uses README statements and the supplied source index/excerpts for relationships; unsampled components are included where the README documents them, but their internal calls are not inferred.
Main entry points: tasks.py Background tasks · executor.py Script executor · schedule_service.py Schedule service · api.py Plugin SDK
Components 21
Control panel
- Script management
core/views/scripts.py - Schedule controls
core/views/tasks.py - Services console
core/views/services.py
Script execution
- Scripts and runs
core/models/run.py - Schedule records
core/models/schedule.py - Schedule service
core/services/schedule_service.py - Background tasks
core/tasks.py - Script executor
core/executor.py
Platform services
- Python environments
core/services/environment_service.py - Run history and logs
core/logging.py - Encrypted secrets
core/services/encryption_service.py - Notifications
core/services/notification_service.py
Extensions and data
- Script AI
core/script_helpers/pyrunner_ai.py - Plugin SDK
core/plugins/api.py - Vector service
core/vectors/service.py - Vector stores
core/vectors/local_store.py
Operations
- Backup and restore
core/services/backup_service.py - Backup scheduling
core/services/backup_schedule_service.py - S3-compatible storage
core/services/s3_service.py
Other components
- Operator
- Web browser
Connections 21
- Operator → Web browser: uses
README.md - Web browser → Script management: manages scripts
README.md - Web browser → Schedule controls: sets schedules
README.md - Web browser → Services console: configures services
README.md - Script management → Scripts and runs: manages
- Schedule controls → Schedule service: configures
- Schedule service → Schedule records: stores schedules
core/services/schedule_service.py - Schedule service → Background tasks: schedules tasks
core/tasks.py - Background tasks → Script executor: dispatches execution
core/tasks.py - Background tasks → Scripts and runs: loads run data
core/tasks.py - Script executor → Python environments: uses environments
- Background tasks → Notifications: sends alerts
core/tasks.py - Script executor → Run history and logs: captures output
- Script executor → Encrypted secrets: uses secrets
- Script executor → Script AI: calls script helpers
- Plugin SDK → Background tasks: queues runs
core/plugins/api.py - Plugin SDK → Vector service: exposes vectors
core/plugins/api.py - Vector service → Vector stores: uses local backend
core/vectors/service.py - Services console → Backup and restore: manages backups
- Backup scheduling → Background tasks: schedules backups
core/services/backup_schedule_service.py - Backup and restore → S3-compatible storage: stores backups