Skip to main content

Generated AAS submodel classes

Project description

py-aas-submodels

py-aas-submodels is a collection of typed Python classes for AAS submodel templates, automatically generated from official IDTA templates using aas-submodel-to-py. The classes extend the BaSyx Python SDK base classes and pre-fill semantic metadata (semantic IDs, descriptions, qualifiers) from the templates.

Installation

pip install py-aas-submodels

Available Submodels

Module Class IDTA Template
nameplate_02006_2_0 Nameplate Digital Nameplate 2.0
contact_information_02002_1_0 ContactInformations Contact Information 1.0
control_component_instance_02016_1_0 ControlComponentInstance Control Component Instance 1.0
control_component_type_02015_1_0 ControlComponentType Control Component Type 1.0
functional_safety_02014_1_0 FunctionalSafety Functional Safety 1.0
handover_documentation_02004_1_2 HandoverDocumentation Handover Documentation 1.2
provision_of_simulation_models_02005_1_0 SimulationModels Provision of Simulation Models 1.0
reliability_02013_1_0 Reliability Reliability 1.0

Usage

from basyx.aas.model import Identifier, IdentifierType
from py_aas_submodels.nameplate_02006_2_0 import Nameplate

nameplate = Nameplate(
    identification=Identifier(id_="https://example.com/ids/sm/nameplate-001",
                              id_type=IdentifierType.IRI),
    uRIOfTheProduct="https://www.domain-abc.com/Model-Nr-1234",
    manufacturerName={"de": "Muster AG"},
    manufacturerProductDesignation={"en": "ABC-123"},
    yearOfConstruction="2022",
    contactInformation=Nameplate.ContactInformation(
        nationalCode={"en": "DE"},
        cityTown={"de": "Musterstadt"},
        street={"de": "Musterstrasse 1"},
        zipcode={"de": "12345"},
    ),
)

Required arguments are those specified as mandatory in the IDTA template (e.g. Multiplicity=One). Optional submodel elements default to None and can be passed as keyword arguments.

Generating Additional Submodels

To generate classes for your own submodel templates, use the aas-submodel-to-py code generator:

pip install aas-submodel-to-py
submodel_to_code -i path/to/template.aasx -o output.py

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

py_aas_submodels-0.1.1.tar.gz (88.6 kB view details)

Uploaded Source

Built Distribution

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

py_aas_submodels-0.1.1-py3-none-any.whl (98.5 kB view details)

Uploaded Python 3

File details

Details for the file py_aas_submodels-0.1.1.tar.gz.

File metadata

  • Download URL: py_aas_submodels-0.1.1.tar.gz
  • Upload date:
  • Size: 88.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_aas_submodels-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0c4422b0114dd4ef903f904ab8e3be1f58a450b43201be61147c5dde3a9b57ed
MD5 48747503176951890f1e35d2c210d6f0
BLAKE2b-256 49585eb62980e5b284b9e69c31286a7ca112713a03630b777abe63bc7be338bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_aas_submodels-0.1.1.tar.gz:

Publisher: publish.yml on rwth-iat/aas-submodel-template-to-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_aas_submodels-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_aas_submodels-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba2f9ec6f3c9cbf597a488e2cc40ab38cb19889fe2cbc076aabc1b1fe78140e
MD5 20e2f7bde46f31e71068b227f7851336
BLAKE2b-256 9db14f3831f84f5697235932362d37ae813fb2cb971690a06c3f8d11ca471ebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_aas_submodels-0.1.1-py3-none-any.whl:

Publisher: publish.yml on rwth-iat/aas-submodel-template-to-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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