Skip to main content

Python Client to interact with Infrahub

Project description

Infrahub Logo

Infrahub by OpsMill

Infrahub by OpsMill is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run.

At its heart, Infrahub is built on 3 fundamental pillars:

  • Powerful Schema: that's easily extensible
  • Unified Version Control: for data and files
  • Data Synchronization: with traceability and ownership

Infrahub SDK

The Infrahub Python SDK greatly simplifies how you can interact with Infrahub programmatically.

More information can be found in the Infrahub Python SDK Documentation.

Installation

The Infrahub SDK can be installed using the pip package installer. It is recommended to install the SDK into a virtual environment.

python3 -m venv .venv
source .venv/bin/activate
pip install infrahub-sdk

Installing optional extras

Extras can be installed as part of the Python SDK and are not installed by default.

ctl

The ctl extra provides the infrahubctl command, which allows you to interact with an Infrahub instance.

pip install 'infrahub-sdk[ctl]'

tests

The tests extra provides all the components for the testing framework of Transforms, Queries and Checks.

pip install 'infrahub-sdk[tests]'

all

Installs infrahub-sdk together with all the extras.

pip install 'infrahub-sdk[all]'

Development setup with UV

If you're developing the SDK and using UV for dependency management, you can install specific dependency groups:

# Install development dependencies
uv sync --all-groups --all-extras

# Install specific groups
uv sync --group tests               # Testing dependencies only
uv sync --group lint                # Linting dependencies only
uv sync --group ctl                 # CLI dependencies only
uv sync --all-groups --all-extras   # All optional dependencies

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infrahub_sdk-1.18.1.tar.gz (758.8 kB view details)

Uploaded Source

Built Distribution

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

infrahub_sdk-1.18.1-py3-none-any.whl (198.1 kB view details)

Uploaded Python 3

File details

Details for the file infrahub_sdk-1.18.1.tar.gz.

File metadata

  • Download URL: infrahub_sdk-1.18.1.tar.gz
  • Upload date:
  • Size: 758.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for infrahub_sdk-1.18.1.tar.gz
Algorithm Hash digest
SHA256 70768bcd9220170d327f26362969a62445af22c6ba915244c9441d5195d8ee47
MD5 f353aea5d0420b9c5249f95414865c1e
BLAKE2b-256 951d475819223ea2ee809329e896c3dce91abd1e4f29b12de292816666ad8e7a

See more details on using hashes here.

File details

Details for the file infrahub_sdk-1.18.1-py3-none-any.whl.

File metadata

File hashes

Hashes for infrahub_sdk-1.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce0f2497661d4924709268a72cb2ba6235208610a6f338dcaa40da21390160fc
MD5 bf0a550a8d6454ef807a3a4fd9080bd5
BLAKE2b-256 2bf1a8ef0cc4fa5edbc71961dda666ca946da0a2d372fedad572aaf8c09ccf8d

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