---
title: How to script MAAS with Python
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical-com-2950.demos.haus/maas/docs/how-to-script-maas-with-python?format=md
---

*Submit*

# How to script MAAS with Python

The `python-libmaas` client library provides access to various MAAS endpoints, so that you can write Python scripts to control MAAS. This page provides links to the necessary references and instructions.

## [Library endpoints](https://canonical-com-2950.demos.haus/maas/docs/how-to-script-maas-with-python?format=md#p-9398-library-endpoints)

Currently, the library provides eight endpoints:

* account
* boot-sources and boot-resources
* machines, devices, region controllers, rack controllers
* events
* configuration
* tags
* version
* zones

See the [API documentation](https://canonical.com/maas/docs/api) for more info.

## [Using python-libmaas](https://canonical-com-2950.demos.haus/maas/docs/how-to-script-maas-with-python?format=md#p-9398-using-python-libmaas)

Kick-start your journey with these useful external links:

* [Python libmaas on GitHub](https://github.com/maas/python-libmaas)
* [Python libmaas in the MAAS GitHub pages](http://maas.github.io/python-libmaas/index.html)

For hands-on examples to get you up and running, visit the [Python libmaas client guide](https://maas.github.io/python-libmaas/client/index.html).

For package details on PyPI, consult [this external link](https://pypi.python.org/pypi/python-libmaas).

---

[Previous

Set up air-gapped MAAS](https://canonical-com-2950.demos.haus/maas/docs/how-to-set-up-air-gapped-maas)
[Next

Deploy VMs on IBM Z](https://canonical-com-2950.demos.haus/maas/docs/how-to-deploy-vms-on-ibm-z)

Last updated 1 year, 1 month ago. [Help improve this document in the forum](https://discourse.maas.io/t/how-to-script-maas-with-python/5404).
