{"id":27127,"library":"maas-api","title":"MAAS API Client","description":"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.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/jellehelsen/maas-api","tags":["maas","metal-as-a-service","api-client","httpx"],"install":[{"cmd":"pip install maas-api","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for API requests","package":"httpx","optional":false}],"imports":[{"note":"Old package name was 'maas', now 'maas_api'","wrong":"from maas import MAASClient","symbol":"MAASClient","correct":"from maas_api import MAASClient"}],"quickstart":{"code":"from maas_api import MAASClient\n\nclient = MAASClient(\n    url=os.environ.get('MAAS_URL', 'http://localhost:5240/MAAS'),\n    api_key=os.environ.get('MAAS_API_KEY', ''),\n)\n\nmachines = client.machines.list()\nprint(machines)","lang":"python","description":"Create a client and list machines."},"warnings":[{"fix":"pip uninstall maas && pip install maas-api","message":"The package was renamed from 'maas' to 'maas-api'. If you have 'maas' installed, uninstall it first to avoid conflicts.","severity":"breaking","affected_versions":"<=0.1.0"},{"fix":"Change imports to 'from maas_api import MAASClient'","message":"Old import path 'from maas import MAASClient' no longer works. Use 'from maas_api import MAASClient'.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Ensure MAAS_API_KEY is in the correct colon-separated format.","message":"API key must be in the format 'consumer-key:token-key:token-secret'. If using a different format, authentication will fail silently.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: pip install maas-api","cause":"Package not installed or wrong import name.","error":"ModuleNotFoundError: No module named 'maas_api'"},{"fix":"Check MAAS_URL and MAAS_API_KEY environment variables. Ensure API key has correct permissions.","cause":"Missing or incorrect API key or URL.","error":"machines.list() returns empty list even though machines exist"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}