Skip to main content

A Python client for simulating System Structure and Parameterization (SSP) models with integrated Functional Mock-up Interface (FMI) components in easySSP.

Project description

easyssp-logo-light

easySSP Simulation Python Client

This is the official Python client for the Simulation API of the easySSP. It provides an easy-to-use interface for interacting with simulation endpoints โ€” including launching, monitoring, and managing simulations programmatically.


๐Ÿš€ Features

  • ๐Ÿ“‹ Retrieve available simulation options and current simulation credits
  • ๐ŸŽฏ Launch and control simulations
  • ๐Ÿ” Monitor simulation progress and access results
  • ๐Ÿ—‚๏ธ Manage and organize executed simulations

๐Ÿ“ฆ Installation

pip install easyssp-simulation-client

Or clone and install from source:

git clone https://github.com/exxcellent/easyssp-simulation-client-python.git
cd easyssp-simulation-client-python
pip install -e .

Tests

Execute pytest or python -m pytest to run the tests.

๐Ÿ“ Project Structure

easyssp_simulation/
โ”œโ”€โ”€ __init__.py
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ””โ”€โ”€ simulation_client.py                         # Simulating SSP models with integrated FMI components in easySSP
โ”‚
โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ hardware_option.py                           # The available hardware configuration options for simulations
โ”‚   โ”œโ”€โ”€ run.py                                       # The different runs the Simulation consists of
โ”‚   โ”œโ”€โ”€ simulation.py                                # The created/started simulation
โ”‚   โ”œโ”€โ”€ simulation_info.py                           # Info about the simulation
โ”‚   โ”œโ”€โ”€ simulation_started.py                        # Info about the started simulation
โ”‚   โ”œโ”€โ”€ start_simulation_configuration.py            # The configuration for the simulation runs
โ”‚   โ”œโ”€โ”€ start_simulation_run_configuration.py        # Specifies configurations for simulation runs to execute on the given .ssp-file
โ”‚   โ””โ”€โ”€ step.py                                      # Each simulation run is split into two steps. The 'generate' step will generate a simulator. The 'simulate' step will use that simulator to perform the simulation with the given configurations

๐Ÿ“– API Reference

This client is built against the official Simulation API specification, available as an OpenAPI (Swagger) document.

You can explore the full API documentation here:
๐Ÿ‘‰ Simulation API

๐Ÿ“š Examples Repository & Extended Documentation

Looking for working demos? Check out the Simulation Client Examples Repository here:
๐Ÿ‘‰ Simulation Client Examples Repository

It includes:

  • Real-world examples for running and managing simulations
  • Usage patterns for authentication and error handling

It's the best place to explore how the client works in action and how to integrate it into your own workflows.

๐Ÿ› ๏ธ Requirements

  • Python 3.11+
  • easyssp Pro Edition Account

Install dependencies using uv:

pip install uv
uv sync

๐Ÿค Contributing

This module is maintained as part of the easySSP ecosystem. If you find issues or want to suggest improvements, please open an issue or submit a pull request.

๐Ÿ“„ License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easyssp_simulation_client-1.0.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easyssp_simulation_client-1.0.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file easyssp_simulation_client-1.0.0.tar.gz.

File metadata

File hashes

Hashes for easyssp_simulation_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dbfbfd1ea6b871f714de884473d913ca049249b09594f3ce7d74fb4209250955
MD5 979acbee440a56f2fc084c43d535fae1
BLAKE2b-256 bbdd22c7cdd3424335ea532b4193c4dba15c5a0cc4b68e919eb922143719c429

See more details on using hashes here.

File details

Details for the file easyssp_simulation_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easyssp_simulation_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b0cd626ecab133d17a9b21e5f702ef795e9d8a57ff619aeee1a064d29b534c3
MD5 c3a8e3cce1c5c6011c264cd033d39ef9
BLAKE2b-256 259f445a9a664d6a00d1576facaf1f11756d9d104fed37758df11f0aef8eaa30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page