scorpiox-serverNetwork

Lightweight HTTP server that executes Python scripts and returns output.

Supported Platforms

Linux x64 Linux ARM64 macOS ARM64 Windows x64

Flags & Options

Flag Short Description Takes Value
--repo -r Git repository URL to clone and serve Python scripts from Yes
--branch -b Git branch to checkout after cloning the repository Yes
--poll -p Polling interval in seconds to check for repository updates Yes
--help -h Show help message and usage information No
-e Set environment variables passed to executed Python scripts Yes

Usage Examples

Basic — Serve a local Git repository
# Clone a website repo and serve its Python pages on port 8080
scorpiox-server --repo https://git.example.com/org/my-website.git
Specify branch
# Serve from the "staging" branch instead of the default
scorpiox-server --repo https://git.example.com/org/my-website.git --branch staging
Auto-update with polling
# Poll the repository every 60 seconds for new commits
scorpiox-server -r https://git.example.com/org/site.git -p 60
Pass environment variables to scripts
# Set API keys and config as env vars available to all served scripts
scorpiox-server -r https://git.example.com/org/api.git   -e API_KEY=sk-abc123 -e DB_HOST=localhost
Production deployment with all options
# Full production setup: specific branch, polling, and env config
scorpiox-server   --repo https://token@git.company.com/team/prod-site.git   --branch main   --poll 120   -e ENV=production   -e LOG_LEVEL=info

# Server starts, clones the repo, and begins serving .py files as HTTP endpoints
# Incoming requests are routed to matching Python scripts
# GET /dashboard → executes dashboard.py and returns its stdout as the HTTP response
# Scripts receive request data via CGI-style environment variables
Show help
scorpiox-server --help

Source & Build Info

Source File
scorpiox/scorpiox-server.c
Lines of Code
3,018
Dependencies
libsxutil, yyjson

Related Tools