Metadata-Version: 2.4
Name: aas-standard-parser
Version: 0.5.2
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

[![PyPI version](https://img.shields.io/pypi/v/aas-standard-parser.svg)](https://pypi.org/project/aas-standard-parser/)
[![License: MIT](https://img.shields.io/badge/license-MIT-%23f8a602?label=License&labelColor=%23992b2e)](https://github.com/fluid40/aas-http-client/blob/dk/doxygen/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)

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.

**Notes:**

* 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.

**Table of Contents:**

- [AAS standard Parser](#aas-standard-parser)
  - [🚀 Features](#-features)
    - [Comprehensive AAS Submodel Parsing](#comprehensive-aas-submodel-parsing)
    - [Core Parsers](#core-parsers)
    - [Utility Functions](#utility-functions)
  - [📚 Resources](#-resources)

---

## 🚀 Features

### Comprehensive AAS Submodel Parsing

* ✅ Parse and extract data from AAS structures, with specialized support for AID and AIMC submodels
* ✅ Navigate hierarchical submodel elements using intuitive dot-separated paths and indexed access
* ✅ Extract endpoint metadata, interface properties, authentication details, and mapping configurations

### Core Parsers

* ✅ **AAS Parser**: Retrieve submodel IDs and references from Asset Administration Shell structures
* ✅ **Submodel Parser**: Access nested elements by idShort path with support for SubmodelElementLists and Collections
* ✅ **AID Parser**: Extract interface descriptions, properties, protocol bindings, and authentication details
* ✅ **AIMC Parser**: Parse mapping configurations and source-sink relations between interfaces

### Utility Functions

* ✅ Collection and reference helpers for semantic ID matching, filtering, and key extraction
* ✅ Load and validate submodels from JSON files with error handling
* ✅ Structured JSON logging with colored console output

---

## 📚 Resources

📘 [Documentation](https://fluid40.github.io/aas-standard-parser/)

📝 [Changelog](docs/CHANGELOG.md)

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

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

📜 [MIT License](https://github.com/fluid40/aas-standard-parser/blob/main/LICENSE)

---
