Skip to main content

Python client library for AAS Registry APIs (IDTA-01002 Part 2, v3.x)

Project description

basyx-registry-client

Python client library for AAS Registry APIs (IDTA-01002 Part 2, v3.x).

This library enables service discovery via AAS Registry APIs, allowing you to resolve Asset Administration Shell identifiers to their endpoint URLs. It complements the basyx-client repository client by providing the registry lookup layer in the workflow: ID → Registry → Endpoint → AASClient → Data.

Installation

pip install basyx-registry-client

With optional basyx-client integration:

pip install basyx-registry-client[basyx]

For development:

pip install basyx-registry-client[dev]

Quickstart

from basyx_registry_client import AsyncRegistryClient, RegistryClient

# Create a registry client
client = RegistryClient(base_url="https://registry.example.com/api/v3.0")

# List all shell descriptors
for descriptor in client.iter_shell_descriptors():
    print(f"AAS: {descriptor.id}")

# Resolve an AAS endpoint by its identifier
aas_id = "https://example.com/aas/motor-001"
endpoint = client.resolve_aas_href(aas_id)
print(f"Endpoint URL: {endpoint}")

# Optional filters
page = client.list_shell_descriptors(id_short="Motor001", asset_kind="Instance")
print(f"Filtered page size: {len(page)}")

# Async usage
async with AsyncRegistryClient(base_url="https://registry.example.com/api/v3.0") as client:
    descriptor = await client.get_shell_descriptor(aas_id)
    print(f"Found: {descriptor.id_short}")

With basyx-client integration:

from basyx_registry_client import RegistryClient
from basyx_registry_client.integrations import aas_client_from_registry

registry = RegistryClient("https://registry.example.com/api/v3.0")
aas = aas_client_from_registry(registry, "urn:example:aas:1")
shell = aas.get_shell("urn:example:aas:1")

Features

  • Synchronous and asynchronous API support
  • Full type annotations with Pydantic models
  • Compliant with IDTA-01002 Part 2, v3.x specification
  • Shell and submodel descriptor CRUD operations
  • Optional idShort/assetKind filters for shell descriptor listings
  • Resolve identifiers to preferred endpoints

API Reference

Documentation coming soon.

License

Apache-2.0

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

basyx_registry_client-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

basyx_registry_client-0.1.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file basyx_registry_client-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for basyx_registry_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ddfe6e5d90eb2c5a5f2ec9e73a5d074993ce88171d0ce4ec4873522ee3ac025
MD5 72c76c455f8ee01dd73936d6235e52a3
BLAKE2b-256 5094d6ff4edbaf154209d9a567434c4d1cbdd55391ae0b7d1d11e219376266e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for basyx_registry_client-0.1.0.tar.gz:

Publisher: publish.yml on hadijannat/basyx-registry-client

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

File details

Details for the file basyx_registry_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for basyx_registry_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fcbc4ddcb75e80504809056490559c8089f891922be38d44b526ad8bf30bd91
MD5 c9e485fb2f38b1c5a7915ab264073db1
BLAKE2b-256 8803879fd4a1a359072d1e0e24989762fa13efded2f4611d5c3f30d72ec66beb

See more details on using hashes here.

Provenance

The following attestation bundles were made for basyx_registry_client-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hadijannat/basyx-registry-client

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