Skip to content

SIMBA Python Library

The Simba Python Module (aesim.simba) is a Python package that contains hundreds of functions providing direct access to SIMBA such as creating a circuit, modifying parameters, running a simulation, and retrieving results. aesim.simba is independent and does not require to have SIMBA installed to be used.

Installation

The easiest way to install the Python package is using pip:

pip install aesim.simba

Requirements

aesim.simba is compatible with Windows, macOS and Linux (64-bit).

Activation

The deployment key available on your account profile page must be used to activate aesim.simba. Two methods are available:

Using Environment Variable

The easiest way to activate pysimba is to set the environment variable SIMBA_DEPLOYMENT_KEY value to your deployment key. To add a new environment variable in Windows:

  • Open the Start Search, type in “env”, and choose “Edit the system environment variables”:
  • Click the “Environment Variables…” button.
  • Set the environment variables as needed. The New button adds an additional variable.

Code-based Activation

The License API can also be used to activate aesim.simba. Check the returned status before starting work:

1
2
3
4
from aesim.simba import License, Status

if License.Activate('*** YOUR DEPLOYMENT KEY ***') != Status.OK:
    raise RuntimeError("SIMBA activation failed")

For disconnected installations, see Offline Mode. Server, cloud and container deployments are covered separately in Compute License, under Installation & License.

Desktop and Python share the license validation and renewal policy. Review Your Account to select a license or obtain its activation information.

Desktop and Python usage reporting is described in License Usage Reports.

Package documentation

The package documentation is available here.

Performance

Running a simulation using the Python Library is significantly faster than using the SIMBA User Interface because there is no overhead.

Roadmap

Feel free to use our public GitHub project to check and contribute to our roadmap.