Metadata-Version: 2.4
Name: aas-standard-parser
Version: 0.4.0
Summary: Some auxiliary functions for parsing standard submodels
Author-email: Daniel Klein <daniel.klein@em.ag>
License: MIT License
        
        Copyright (c) 2025 Fluid4.0
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/fluid40/aas-standard-parser
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: basyx-python-sdk>=2.0.0
Requires-Dist: python-json-logger>=4.0.0
Requires-Dist: requests>=2.32.5
Dynamic: license-file

# aas-standard-parser

aas_standard_parser

---

[![License: MIT](https://img.shields.io/badge/license-MIT-%23f8a602?label=License&labelColor=%23992b2e)](LICENSE)
[![CI](https://github.com/fluid40/aas-standard-parser/actions/workflows/CI.yml/badge.svg?branch=main&cache-bust=1)](https://github.com/fluid40/aas-standard-parser/actions)
[![PyPI version](https://img.shields.io/pypi/v/aas-standard-parser.svg)](https://pypi.org/project/aas-standard-parser/)

This project provides tools for parsing and handling Asset Administration Shell (AAS) standard submodels, with a focus on AID and AIMC submodels. It enables:

- Extraction, interpretation, and mapping of submodel elements and their properties
- Working with references, semantic IDs, and submodel element collections
- Representation and processing of mapping configurations and source-sink relations
- Structured and colored logging, including log file management

These components enable efficient parsing, transformation, and analysis of AAS submodels in Python-based workflows.
> **Note:** Most functions in this project utilize the [python aas sdk framework](https://github.com/aas-core-works/aas-core3.0-python) for parsing and handling AAS submodels, ensuring compatibility with the official AAS data models and structures.
---

## Provided Parsers

- **AID Parser**: Parses AID submodels to extract interface descriptions, properties, and security/authentication details.
- **AIMC Parser**: Parses AIMC submodels to extract and process mapping configurations and source-sink relations.
- **AAS Parser**: Utilities to extract submodel IDs from an Asset Administration Shell.
- **Submodel Parser**: Helpers to retrieve submodel elements by semantic ID or by path within a submodel.

## Helper Modules

- **Collection Helpers**: Functions to search and filter submodel elements by semantic ID, idShort, or supplemental semantic ID within collections.
- **Reference Helpers**: Utilities for working with references, such as constructing idShort paths and extracting values from reference keys.
- **Utilities**: General utility functions, including loading a submodel from a file.

---

## API References
- AID Parser
- AIMC Parser
- [AAS Parser](docs/api_references/api_aas_parser.md)
- [Submodel Parser](docs/api_references/api_submodel_parser.md)
- Collection Helpers
- [Reference Helpers](docs/api_references/api_reference_helpers.md)
- [Utilities](docs/api_references/api_utils.md)

## Resources

🤖 [Releases](http://github.com/fluid40/aas-standard-parser/releases)

📦 [Pypi Packages](https://pypi.org/project/aas-standard-parser/)

📜 [MIT License](LICENSE)
