Skip to main content

A Python library for managing and loading class instances from modules and YAML configurations.

Project description

spx-sdk

spx-sdk is a Python library designed as a foundation for building and extending physics-based simulation models of hardware devices within the SPX environment. It provides tools and abstractions to define and compose simulation components, configure simulation workflows, and integrate virtual prototypes seamlessly into your product development lifecycle and CI/CD pipelines.

Features

  • Modular Components: Easily define and combine device models and subcomponents.
  • Configurable Workflows: Customize simulation parameters, scenarios, and execution order.
  • CI/CD Integration: Automate simulation runs as part of your build and testing pipelines.
  • Extensible Architecture: Extend core classes to support custom hardware models and simulation logic.

Installation

Install via pip:

pip install spx-sdk

Getting Started

from spx_sdk.components import SpxComponent, SpxContainer
from spx_sdk.registry import register_class

# Register a custom component
@register_class(name="info")
class InfoComponent(SpxComponent):
    def _populate(self, parameters):
        self.info = None
        
    def run(self, *args, **kwargs):
        print(self.info)

yaml_data = '''
info:
    info: "Hello World!"
'''

# Parse JSON and build the container
data = json.loads(yaml_data)
instance = SpxContainer(
    name='Root',
    definition=data,
    parent=None
)
# Run the simulation
sim.run()

For full documentation, examples, and advanced configuration, visit the project docs.

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

spx_sdk-0.3.0a1.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

spx_sdk-0.3.0a1-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file spx_sdk-0.3.0a1.tar.gz.

File metadata

  • Download URL: spx_sdk-0.3.0a1.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spx_sdk-0.3.0a1.tar.gz
Algorithm Hash digest
SHA256 2d2d0b5e142d361a09beec624654c3b0bb4f9afb08b4326e2cd01b930cd96b47
MD5 fda6b253a78e80a9675f11adbf02d2af
BLAKE2b-256 72fbc19b3872f32b654162b7a3c5c79f50dd44fd74e0bed8c42c2fd9e17d1700

See more details on using hashes here.

File details

Details for the file spx_sdk-0.3.0a1-py3-none-any.whl.

File metadata

  • Download URL: spx_sdk-0.3.0a1-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spx_sdk-0.3.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 305ad6b940a63158de5b893376ed7137aad2d7e1a727c6b7b9c28592d9c21ca5
MD5 4e5543d15258e7d314228878c586ea02
BLAKE2b-256 66ecc0457afc5fb0d57d21a2214e90898bb8c5279e1ff1df63e2e5d56b90507e

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