Registry / http-networking / maas-api

maas-api

JSON →
library0.1.1pypypi✓ verified 80d ago

An API client library for interacting with MAAS (Metal as a Service) instances. Provides a Pythonic interface to manage machines, networks, and other MAAS resources. Current version 0.1.1, released March 2025. Release cadence is irregular.

pip install maas-api
INSTALL
IMPORT
SIG · MAAS-API
M
maas-api
http-networkingpythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from maas_api import Client
from maas_api import MAASClient
client
from maas_api import client

Create a client and list machines.

from maas_api import MAASClient client = MAASClient( url=os.environ.get('MAAS_URL', 'http://localhost:5240/MAAS'), api_key=os.environ.get('MAAS_API_KEY', ''), ) machines = client.machines.list() print(machines)
Debug
Known issues
breakingThe package was renamed from 'maas' to 'maas-api'. If you have 'maas' installed, uninstall it first to avoid conflicts.
fix
pip uninstall maas && pip install maas-api
affects: <=0.1.0
deprecatedOld import path 'from maas import MAASClient' no longer works. Use 'from maas_api import MAASClient'.
fix
Change imports to 'from maas_api import MAASClient'
affects: >=0.1.0
gotchaAPI key must be in the format 'consumer-key:token-key:token-secret'. If using a different format, authentication will fail silently.
fix
Ensure MAAS_API_KEY is in the correct colon-separated format.
affects: all
Upgrade
Version history
0.1.1latest on PyPI · released Oct 22, 2021
Audit
Dependencies
httpxrequiredHTTP client for API requests
Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
maas-api — pip install maas-api · libregistry