A web application for running Python scripts.
Project description
script-runner
Run Python scripts on production data.
This application can run in either combined or multi-region mode.
For multi-region mode, set mode: region for region, and mode: main for the main deployment. mode: combined runs both together.
Example data:
- These are in the examples/scripts directory
- You can generate data for the examples via
make generate-example-data
Configuration
Runs in combined, main and region mode. Combined is mostly for dev and testing.
check config.schema.json
Development Setup
To run the application locally for development, you need to start both the backend (Flask) and frontend (Vite) servers in separate terminals.
1. Start the Backend Server:
- Navigate to the project root directory (
script-runner). - Activate the Python virtual environment (e.g.,
source .venv/bin/activate). - Set the configuration file path environment variable (replace with your actual config file):
export CONFIG_FILE_PATH="example_config_main.yaml"
- Run the Flask development server:
flask --app script_runner.app run
- The backend should now be running (typically on
http://127.0.0.1:5000).
2. Start the Frontend Server:
- Open a separate terminal.
- Navigate to the frontend directory:
cd script_runner/frontend
- Install dependencies if you haven't already:
npm install - Run the Vite development server:
npm run dev
- The frontend should now be running (typically on
http://localhost:5173) and will automatically proxy API requests to the backend thanks to the proxy configured invite.config.ts.
Accessing the App:
Open your browser and navigate to the frontend URL (e.g., http://localhost:5173).
Stopping the Servers:
Press Ctrl + C in each terminal window.
(Optional) Using Make:
This project may contain a Makefile with a command to simplify this process (e.g., make devserver). Check the Makefile content; if available, this command might start both servers for you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sentry_script_runner-0.2.1.tar.gz.
File metadata
- Download URL: sentry_script_runner-0.2.1.tar.gz
- Upload date:
- Size: 61.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f43df6697454f8e1cab52275b19c1efa9c5d0dc345bd0e819b642039933288c9
|
|
| MD5 |
6883ee96749e7d46febab4a8f3fd5c53
|
|
| BLAKE2b-256 |
01a40bfd6612342f0289677caac8d1f91560d693f13db8727adc817b40b65d10
|
File details
Details for the file sentry_script_runner-0.2.1-py3-none-any.whl.
File metadata
- Download URL: sentry_script_runner-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f67ab36d1c1428158e6d77790c745b86dbe7188e696c2ec281a36a651fdde44
|
|
| MD5 |
efecc9c907b354f0585f00c39c74eb92
|
|
| BLAKE2b-256 |
aa2f703e485933a8506dbe234f3e28624eecf5081487f24889354f08f122af86
|