Sovereign-Event-Bus / seb /scripts /codegen /generate_python.sh
SNAPKITTYWEST's picture
push from SNAPKITTYWEST/Sovereign-Event-Bus
6afa130 verified
Raw
History Blame Contribute Delete
440 Bytes
#!/bin/bash
# Generate Python code from template
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SEB_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
TEMPLATE="$SEB_ROOT/contracts/python.template"
OUTPUT_DIR="$SEB_ROOT/clients/python"
echo "[Python] Copying template to client directory..."
cp "$TEMPLATE" "$OUTPUT_DIR/seb_client.py"
echo "[Python] Generated: $OUTPUT_DIR/seb_client.py"
# Made with Bob