This repository provides real-world examples for using the official easySSP Simulation Client. Whether you're testing the API or building production workflows, these scripts will help you get started quickly.
- 🔐 Authentication via the authentication module
- 🧪 Run, stop, and delete simulations
- 📈 Download results and sampled results
- 📘 Includes documentation for all Simulation API endpoints and models
easyssp-simulation-examples-python/
├── demo.py # Run a basic scenario
├── demo_config.py # User agent and easySSP username and password config.
├── simulation_operations.py # Helper functions for polling simulation status, downloading results, etc.
├── start_simulation_config_json.py # JSON representation of a start simulation configuration
├── input/
│ └── exampleStimuli.csv # Stimuli file for starting a simulation
│ └── simulation_example.ssp # SSP file for starting a simulation
└── output # Directory for storing the simulation runs results and simulation steps logs.
This guide walks you through setting up and running the example scripts provided in the easySSP Simulation Examples repository.
To begin, clone the repository and navigate into the project directory:
- Clone the repo:
git clone https://github.com/exxcellent/easyssp-simulation-examples-python.git
- Change into the directory:
cd easyssp-simulation-examples-python
Ensure you have Python 3.11 or higher installed and a Pro Edition easySSP Account. Create the virtual environment by running
python -m venv .venv
.\.venv\Scripts\activate # or source .venv/bin/activate on macOS
Then, install all required dependencies using uv:
pip install uv
uv sync
In the demo_config.py
file, provide your easySSP credentials to start the demo.
This repository uses structured folders to organize data and results:
The input/
directory contains files used to start simulations. These include:
- .ssp files
- .csv stimuli files
Each script pulls its input data from this folder when submitting a request to the Simulation API.
The output/
directory is where simulation results are stored. This may include:
- Raw result files in CSV format
- Simulation steps log files
This separation of input and output ensures clarity, reproducibility, and easy cleanup.
The demo.py
script in the demo
directory acts as a central demo runner and contains example requests that show
how to use the client
across different simulation scenarios. It's a great starting point if you're exploring the API for the first time or
want to see full workflows in action.
To start the demo, run
cd demo
python -m demo
The official Python client for interacting with the easySSP Simulation API.
Handles authentication by retrieving and storing JWT tokens.
🧰 Utils
A shared utility module used by all Python clients. Includes request handling, exceptions, and other reusable helpers.
Spotted a bug or want to add your own scenario?
Pull requests and issues are welcome!
This project is licensed under the MIT License.