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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c4422b0114dd4ef903f904ab8e3be1f58a450b43201be61147c5dde3a9b57ed
|
|
| MD5 |
48747503176951890f1e35d2c210d6f0
|
|
| BLAKE2b-256 |
49585eb62980e5b284b9e69c31286a7ca112713a03630b777abe63bc7be338bd
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_aas_submodels-0.1.1.tar.gz -
Subject digest:
0c4422b0114dd4ef903f904ab8e3be1f58a450b43201be61147c5dde3a9b57ed - Sigstore transparency entry: 985890569
- Sigstore integration time:
-
Permalink:
rwth-iat/aas-submodel-template-to-py@63bbc4b484c9370baddb770ad5596c349d50e4cf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/rwth-iat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@63bbc4b484c9370baddb770ad5596c349d50e4cf -
Trigger Event:
release
-
Statement type:
File details
Details for the file py_aas_submodels-0.1.1-py3-none-any.whl.
File metadata
- Download URL: py_aas_submodels-0.1.1-py3-none-any.whl
- Upload date:
- Size: 98.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ba2f9ec6f3c9cbf597a488e2cc40ab38cb19889fe2cbc076aabc1b1fe78140e
|
|
| MD5 |
20e2f7bde46f31e71068b227f7851336
|
|
| BLAKE2b-256 |
9db14f3831f84f5697235932362d37ae813fb2cb971690a06c3f8d11ca471ebe
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_aas_submodels-0.1.1-py3-none-any.whl -
Subject digest:
5ba2f9ec6f3c9cbf597a488e2cc40ab38cb19889fe2cbc076aabc1b1fe78140e - Sigstore transparency entry: 985890631
- Sigstore integration time:
-
Permalink:
rwth-iat/aas-submodel-template-to-py@63bbc4b484c9370baddb770ad5596c349d50e4cf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/rwth-iat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@63bbc4b484c9370baddb770ad5596c349d50e4cf -
Trigger Event:
release
-
Statement type: