Skip to main content

Shared Python integrations for UiO infrastructure services.

Project description

osp-uio-integrations

Shared Python integration package for UiO-specific infrastructure systems such as MREG and Nivlheim.

This repository is the concrete API-glue layer for external UiO systems. It is meant to keep authentication, request/response handling, error mapping, and small normalization helpers in one place so providers and transitional orchestrator code do not duplicate that plumbing.

For maintainer-facing internals and invariants, see src/README.md.

Scope

  • Reusable Python clients for UiO infrastructure services
  • Shared transport/auth/session glue
  • API-specific response parsing and error translation
  • Small stable normalized helper types where duplication would otherwise grow

Current focus

The first concrete integration is a small sync MREG library with:

  • explicit transport and auth handling
  • optional interactive login for token bootstrap
  • request metadata headers such as User-Agent and X-Correlation-ID
  • a host-focused surface covering queries, lifecycle, history, addressing, contacts, CNAMEs, and explicit DNS record modules
  • host-policy role/atom helpers, including batched role lookup for many hosts
  • VLAN host membership lookup with optional host-policy enrichment that avoids per-host API calls
  • room to grow into further MREG areas without flattening everything into one module

For concrete usage examples and a translation table from supported mreg-cli commands to this library API, see docs/mreg-cli-command-map.md.

Non-goals

  • Provider workflow or execution logic
  • Ownership, approval, or placement policy
  • Orchestrator/provider wire contracts
  • Provider-specific planning decisions

Install

pip install osp-uio-integrations

Development

env -u VIRTUAL_ENV uv sync --extra dev
hatch shell
hatch run dev:check
hatch run dev:build
hatch run dev:verify

Release

See docs/release.md for the manual tag and publish flow.

Create and push the annotated release tag from the checked-in release notes:

hatch run dev:tag-push

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

osp_uio_integrations-0.2.1.tar.gz (161.8 kB view details)

Uploaded Source

Built Distribution

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

osp_uio_integrations-0.2.1-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file osp_uio_integrations-0.2.1.tar.gz.

File metadata

  • Download URL: osp_uio_integrations-0.2.1.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for osp_uio_integrations-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e0a51dc05bee35727f4599c40e7b15755519b4fdb47a29417130a476f1aa40ba
MD5 770d568c006ca71f9c5f5bad359c4eca
BLAKE2b-256 cc75070c9ce257303b263d81b6e5411a7417ed865da558136dbba312f273c3da

See more details on using hashes here.

File details

Details for the file osp_uio_integrations-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for osp_uio_integrations-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 578699533fcf64a2d846ebc3320aa92e939521a7c35b1352abf5812009f2fc2f
MD5 52c0b8c2c9ca6bde0efd86a020aba396
BLAKE2b-256 9dfd4da0a1d00a9afa9a3afbcf5aea40080e7c09bc2fbe2c1a8bdaf0e3a36b72

See more details on using hashes here.

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