Skip to main content

BorealHost Python SDK

Python SDK for the BorealHost.ai REST API.

BorealHost is an agent-native Quebec-based web hosting platform. This SDK wraps the full public REST API (/api/v1/*) — purchase hosting, deploy sites, manage DNS, register domains, run SSH commands, and scale infrastructure.

Install

pip install borealhost-sdk

Usage

from borealhost_sdk import Client

client = Client(api_key="bh_...")

# List plans (no auth needed)
plans = client.list_plans()

# Manage sites
sites = client.list_sites()
status = client.get_site("my-site")
client.deploy("my-site")

# DNS
client.add_domain_dns("example.com", record_type="A", value="1.2.3.4", subdomain="www")

Authentication

API keys are in the format bh_<48 hex chars>.

# Pass at construction
client = Client(api_key="bh_...")

# Or via environment variable
# export BOREALHOST_API_KEY="bh_..."
client = Client()

# Or set later
client = Client()
client.set_api_key("bh_...")

Custom base URL

client = Client(api_key="bh_...", base_url="https://staging.borealhost.ai")

Errors

All errors from the API raise ApiError:

from borealhost_sdk import Client, ApiError

try:
    client.deploy("unknown-site")
except ApiError as e:
    print(e.code)     # "NOT_FOUND"
    print(e.message)  # "Site 'unknown-site' not found"

Metadata

Release files for borealhost-sdk 0.5.2

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

Source distribution (sdist)

Source distribution for borealhost-sdk 0.5.2
File Size Uploaded
borealhost_sdk-0.5.2.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for borealhost-sdk 0.5.2
File Interpreter ABI Platform
borealhost_sdk-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.3 kB

Release files / borealhost_sdk-0.5.2.tar.gz

Download URL borealhost_sdk-0.5.2.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
722b1251d3a6898d498f0b0246c05c972dfc21f8deb3ec177cc2a4844c4fe5e2
BLAKE2b-256 checksum
How to use checksums
389ed8bd9ac8e91949f9fa86907662cea7fa98db2545518904aa952fa5b711c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / borealhost_sdk-0.5.2-py3-none-any.whl

Download URL borealhost_sdk-0.5.2-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6660d163d6808d075949c2586eda6081c1529480425cd4448496969706e4c8eb
BLAKE2b-256 checksum
How to use checksums
4eb74c0bab1580eb1ab73dedc1f181a3beea5558fac5255b5bf6a5b430606da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.5.3

2 release files

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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