Skip to main content

assethandler-sdk

Official Python SDK for Assethandler — an enterprise asset-management platform on the Burdenoff platform.

This SDK is a thin shell over burdenoff-sdk-libs. It mounts the shared platform modules plus the Assethandler domain module and a standalone sandbox module, and exposes them as one ergonomic, fully typed client.

Features

  • Async/await throughout, built on httpx
  • Dual-endpoint GraphQL client (workspace + global gateways)
  • 23 mounted modules: the shared generic set + assethandler + sandbox
  • Multiple auth flows: email/password, device code, PKCE, client credentials
  • Automatic token refresh
  • Typed error hierarchy
  • Full type hints with py.typed marker

Installation

pip install assethandler-sdk

# Development install
pip install -e ".[dev,test,docs]"

Quick Start

import asyncio
from assethandler_sdk import AssethandlerSDK


async def main():
    # Defaults to the shared prod gateways and the burdenoff_cli_assethandler
    # OIDC client. Override the endpoints for local dev.
    sdk = AssethandlerSDK()

    # Sign in with email/password
    await sdk.auth.sign_in(email="user@example.com", password="secret")

    # Assethandler-domain operations are nested under sdk.assethandler
    assets = await sdk.assethandler.assets.list()
    work_orders = await sdk.assethandler.work_orders.list()

    # Shared cross-product modules are mounted at the top level
    tags = await sdk.tags.list()

    await sdk.close()


asyncio.run(main())

Endpoints

The SDK defaults to the Burdenoff production gateways:

Endpoint Default
Workspace https://graphqlworkspaces.burdenoff.com/workspaces/graphql
Global https://graphql.burdenoff.com/global/graphql

You can override them in three ways, in order of precedence:

  1. Constructor arguments — highest precedence
  2. Product-specific environment variables — ASSETHANDLER_WORKSPACE_ENDPOINT and ASSETHANDLER_GLOBAL_ENDPOINT
  3. Generic environment variables — BURDENOFF_WORKSPACE_ENDPOINT and BURDENOFF_GLOBAL_ENDPOINT
from assethandler_sdk import AssethandlerSDK

# Constructor override
sdk = AssethandlerSDK(
    workspace_endpoint="https://graphqlworkspaces.burdenoff.com/workspaces/graphql",
    global_endpoint="https://graphql.burdenoff.com/global/graphql",
)
# Environment override
export ASSETHANDLER_WORKSPACE_ENDPOINT="https://graphqlworkspaces.burdenoff.com/workspaces/graphql"
export ASSETHANDLER_GLOBAL_ENDPOINT="https://graphql.burdenoff.com/global/graphql"

Nested namespace

Per the platform mandate (no compatibility shim), every module surface is nested under its owning module. The Assethandler domain bundle keeps its sub-entities nested:

await sdk.assethandler.assets.list()
await sdk.assethandler.assets.get("asset-id")
await sdk.assethandler.work_orders.list()
await sdk.assethandler.maintenance.list()
await sdk.assethandler.incidents.list()
await sdk.assethandler.problems.list()
await sdk.assethandler.changes.list()
await sdk.assethandler.configuration.list()
await sdk.assethandler.discovery.list()
await sdk.assethandler.software.list()
await sdk.assethandler.iot.list()
await sdk.assethandler.digital_twins.list()
await sdk.assethandler.provenance.list()
await sdk.assethandler.predictions.list()
await sdk.assethandler.esg.list()
await sdk.assethandler.knowledge.list()
await sdk.assethandler.finance.transactions()
await sdk.assethandler.compliance.frameworks()
await sdk.assethandler.security.events()
await sdk.assethandler.dashboard.overview()

Modules

All methods are async. The following modules are mounted on the AssethandlerSDK instance: auth, billing, channels, conversations, devportal, export, files, groups, health, integrations, assethandler, notifications, organizations, products, rbac, sandbox, scheduler, security, store, support, tags, tours, workspaces.

Configuration

from assethandler_sdk import AssethandlerSDK

sdk = AssethandlerSDK(
    workspace_endpoint="https://graphqlworkspaces.burdenoff.com/workspaces/graphql",
    global_endpoint="https://graphql.burdenoff.com/global/graphql",
    client_id="burdenoff_cli_assethandler",   # default
    oidc_issuer=None,                       # derived from global_endpoint
    api_key=None,
    access_token=None,
    refresh_token=None,
    workspace_token=None,
    timeout=30.0,
    auto_refresh=True,
)

Error Handling

from assethandler_sdk import (
    AssethandlerError,
    AuthenticationError,
    AuthorizationError,
    NetworkError,
    ValidationError,
    RateLimitError,
    DeviceCodeExpiredError,
    DeviceCodeDeniedError,
)

try:
    await sdk.auth.sign_in(email="user@example.com", password="wrong")
except AuthenticationError:
    print("Invalid credentials")
except NetworkError:
    print("Could not reach the API")
except AssethandlerError as e:
    print(f"SDK error: {e}")

Testing

The test suite uses pytest, pytest-asyncio, and respx to mock the underlying httpx client. It covers the full mounted API surface, including all 23 modules and every method on the Assethandler domain sub-APIs.

make test          # run tests with coverage
make sanity        # format-check + lint + type-check + test (cov>=80) + build

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev,test,docs]"

make format        # black + isort
make lint          # flake8
make type-check    # mypy (strict)
make test          # pytest
make sanity        # format-check + lint + type-check + test (cov>=80) + build

License

Proprietary — Copyright Burdenoff Consultancy Services Pvt. Ltd.

Support

Metadata

Release files for assethandler-sdk 2026.1110.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assethandler-sdk 2026.1110.1
File Size Uploaded Provenance Actions
assethandler_sdk-2026.1110.1.tar.gz 18.8 kB Without provenance Details for assethandler_sdk-2026.1110.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assethandler-sdk 2026.1110.1
File Interpreter ABI Platform Actions
assethandler_sdk-2026.1110.1-py3-none-any.whl Python 3 none any Details for assethandler_sdk-2026.1110.1-py3-none-any.whl

Total release size: 27.8 kB

Release files / assethandler_sdk-2026.1110.1.tar.gz

Download URL assethandler_sdk-2026.1110.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e67217c88c6554f69f47843398e403f4f91af94263af2d950784aae4f8b59841
BLAKE2b-256 checksum
How to use checksums
50d8307cd942dd65246b53e6da9972a59ef0666f716dc147d0535e7a8afc5ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / assethandler_sdk-2026.1110.1-py3-none-any.whl

Download URL assethandler_sdk-2026.1110.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52f999088a96978f60b43c53d456f6fc9e6e824a4e9de842b50b630093897c98
BLAKE2b-256 checksum
How to use checksums
467938bd4ce05dbb9814bd435927ab48f1d9d14e0644f0e1249a7ee126a29b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for assethandler-sdk 2026.1110.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.1110.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page