Skip to main content

honua-admin

Native application path: gRPC for live data and edits; PMTiles, GeoParquet and COG through the CDN. Start there for browser gRPC-Web setup, signed private URLs and regeneration after changes. OGC API and GeoServices REST examples below are compatibility workflows.

Admin / control-plane client for Honua Server, the multi-protocol geospatial server behind Honua -- inspect and configure services, connections, layers, styles, and metadata resources from Python, and manage server state declaratively through manifests. Sync (HonuaAdminClient) and async (AsyncHonuaAdminClient) clients included.

Status: Alpha (0.x). APIs may change before 1.0. Breaking changes to the public API are gated by a compatibility snapshot, and the client checks server compatibility at runtime via check_compatibility().

What it does

  • Compatibility-first: check_compatibility() and get_capability_flags() read the server's /api/v1/admin/capabilities contract, so callers can gate control-plane calls on what the connected server actually supports (manifest_apply, manifest_dry_run, metadata_resources, ...).
  • Services: list_services(), list_services_page(), get_service_settings(), update_protocols(), update_mapserver_settings().
  • Layers and data: list_layers(), list_layers_page(), publish_layer(), set_layer_enabled() / set_service_layers_enabled(), and discover_tables() for source-database table discovery.
  • Connections: typed CRUD plus test_connection() / test_draft_connection(), validate_encryption(), and rotate_encryption_key().
  • Styles: OGC Styles API (list_styles(), get_stylesheet(), update_style()) and per-layer styles (get_layer_style(), update_layer_style()).
  • Metadata resources: typed CRUD over the server's metadata catalog.
  • Manifests as declarative state: get_manifest() exports the server's metadata state; apply_manifest() applies a manifest with dry-run and prune options and idempotency-key support.
  • Reuses honua-sdk's retry transport, auth providers, and HonuaHttpError envelopes, so data-plane and control-plane code share one error-handling surface.

Install

pip install honua-admin

Installs a compatible honua-sdk automatically (shared HTTP, auth, and error utilities). Requires Python 3.11+.

The supported server baseline and release gate policy are documented in the monorepo compatibility guide.

Minimal Example

from honua_admin import HonuaAdminClient

with HonuaAdminClient("https://your-honua-server.com", api_key="honua-api-key") as admin:
    compatibility = admin.check_compatibility()
    if not compatibility.supported:
        raise RuntimeError("; ".join(compatibility.reasons))

    services = admin.list_services()
    for svc in services:
        print(f"{svc.service_name}: {svc.layer_count} layers")

Always use the with HonuaAdminClient(...) as admin: form -- it guarantees the underlying httpx connections are returned to the pool on exit, even when a request raises. The same auth_provider= argument the data-plane client accepts (e.g. RefreshableBearerTokenProvider) works here unchanged.

Async

import asyncio

from honua_admin import AsyncHonuaAdminClient


async def main() -> None:
    async with AsyncHonuaAdminClient(
        "https://your-honua-server.com",
        api_key="honua-api-key",
    ) as admin:
        compatibility = await admin.check_compatibility()
        if not compatibility.supported:
            raise RuntimeError("; ".join(compatibility.reasons))

        services = await admin.list_services()
        for svc in services:
            print(f"{svc.service_name}: {svc.layer_count} layers")


asyncio.run(main())

The async client mirrors the sync method surface (CRUD helpers, manifest operations, migration scans, capability checks) and shares the same retry transport, auth providers, and HonuaHttpError envelopes.

Folder management

Both clients support typed Folder listing, creation, rename, empty deletion and Service moves with snapshot ETags. Publishing preserves omitted versus explicit Root selection. See the Folder client reference for concurrency, namespace, display metadata and approval behavior.

Documentation

Rendered docs site: honua-io.github.io/honua-sdk-python. Platform docs: honua.io and honua.gitbook.io/honuaio.

Related: honua-sdk (the data-plane client this package builds on), honua-sdk-js (JS/TS SDKs + MCP server), honua-sdk-dotnet (.NET SDKs).

Verify a release

From 0.2.1, each PyPI release is built by this repository's publication workflow, which attaches the same wheel and sdist to the matching GitHub release and records a build-provenance attestation for them. 0.2.0 was published without an attestation; use 0.2.1 or later when you need to verify provenance. After this package is installed, download that same version and check the wheel:

version="$(python3 -c 'import importlib.metadata as metadata; print(metadata.version("honua-admin"))')"
mkdir -p ./honua-wheels
pip download "honua-admin==${version}" --no-deps --dest ./honua-wheels
gh attestation verify "./honua-wheels/honua_admin-${version}-py3-none-any.whl" --repo honua-io/honua-sdk-python

License

Apache-2.0

Metadata

Release files for honua-admin 0.3.3

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

Source distribution (sdist)

Source distribution for honua-admin 0.3.3
File Size Uploaded Provenance Actions
honua_admin-0.3.3.tar.gz 61.8 kB With provenance Details for honua_admin-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for honua-admin 0.3.3
File Interpreter ABI Platform Actions
honua_admin-0.3.3-py3-none-any.whl Python 3 none any Details for honua_admin-0.3.3-py3-none-any.whl

Total release size: 124.0 kB

Release files / honua_admin-0.3.3.tar.gz

Download URL honua_admin-0.3.3.tar.gz
Size 61.8 kB
Tags Source
SHA-256 checksum
How to use checksums
071ebc66cbe31a5317de456c94fbbd4580de5afff0d1fac64a7764fa154475f8
BLAKE2b-256 checksum
How to use checksums
ed9cdc9c78723de106fec1400ae556163d26334044d5fe7e4bbdf2934f9c3ea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / honua_admin-0.3.3-py3-none-any.whl

Download URL honua_admin-0.3.3-py3-none-any.whl
Size 62.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4babfe2b3ad76435f6bf1aa05411437f792e02cc3f191c01841d12c3d744a0d
BLAKE2b-256 checksum
How to use checksums
16d37e21520af0bd25b295fe499b207b931ee73c7eaef2f1919dd2dd55f1fe75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for honua-admin 0.3.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for honua_admin-0.3.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

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