
AAS HTTP Client is a flexible Python library for interacting with Asset Administration Shell (AAS) and submodel repository servers over HTTP. It uses standard Python dictionaries for function inputs and outputs, making it easy to integrate with a variety of workflows. The client implements the most widely used endpoints defined in the AAS server specification, ensuring compatibility with multiple AAS repository server implementations. This allows you to connect to different AAS servers without changing your client code.
Notes:
- Each client instance communicates with exactly one AAS server (1-to-1 mapping). For multiple servers, create multiple instances.
- From version 1.0.0 the client includes implementations for all endpoints from BaSxy Java SDK 'aas-registry', 'submodel-registry' and 'aas-environment'.
Table of Contents:
- AAS HTTP Client
- 🚀 Features
- 🏗️ Supported Servers
- 🧰 Wrappers
- 🔧 Provided Utilities
- 📚 Resources
- ⚡ Quickstart
🚀 Features
- ✅ Easy REST communication with AAS-compliant servers
- ✅ Support for Registry, AAS, and Submodel Repository endpoints
- ✅ Optional wrapper for the Eclipse BaSyx Python SDK
- ✅ Built-in authentication (Bearer, OAuth, Basic)
- ✅ Pagination support
- ✅ Utility modules (encoding, model builder, SDK tools)
- ✅ Tested with multiple AAS server implementations
🏗️ Supported Servers
The client has been tested with:
Actual behavior depends on each server's implementation of the AAS Specification
🧰 Wrappers
Wrappers provide a higher-level interface on top of the raw HTTP client. Use them when you want to work with SDK objects instead of plain Python dictionaries returned by the REST API.
Currently available wrappers:
What the BaSyx Wrapper Adds:
- Accepts and returns
basyx.aas.model objects for common AAS and submodel operations
- Reuses the same connection and authentication settings as the base HTTP client
- Supports wrapper creation from a URL, a Python dictionary, or a configuration file
- Keeps low-level client access available through
wrapper.get_client() when needed
🔧 Provided Utilities
The AAS HTTP Client package also include some utility functions for for recurring tasks (provided by import aas_http_client.utilities ):
- encoder: base64 encoding and decoding
- sdk_tools: e.g. Framework object serialization and deserialization, basic submodel operations
- model_builder: creation of some basic AAS model elements
See Utilities API Reference
📚 Resources
📘 Documentation
📝 Changelog
🤖 GitHub Releases
📦 Pypi Packages
📜 MIT License
⚡ Quickstart
For a detailed introduction, please read Getting Started.
pip install aas-http-client
Client
from aas_http_client.classes.client import aas_client
shells_paginated = client.shells.get_all_asset_administration_shells()
print(shells_paginated.get("results", []))
AasHttpClient|None create_by_url(str base_url, str basic_auth_username="", str basic_auth_password="", str o_auth_client_id="", str o_auth_client_secret="", str o_auth_token_url="", str bearer_auth_token="", str http_proxy="", str https_proxy="", int time_out=200, int connection_time_out=60, bool ssl_verify=True, bool trust_env=True, bool encoded_ids=True)
Create a HTTP client for a AAS server connection from the given parameters.
Wrapper
from aas_http_client.classes.wrapper import sdk_wrapper
shells = wrapper.get_all_asset_administration_shells()
print(shells)
SdkWrapper|None create_by_url(str base_url, str basic_auth_username="", str basic_auth_password="", str o_auth_client_id="", str o_auth_client_secret="", str o_auth_token_url="", str bearer_auth_token="", str http_proxy="", str https_proxy="", int time_out=200, int connection_time_out=60, bool ssl_verify=True, bool trust_env=True, bool encoded_ids=True)
Create a wrapper for a AAS server connection from the given parameters.