MGC SDK Python
6/4/2026
MGC SDK for Python
An unofficial, open-source Python SDK for interacting with the Magalu Cloud API.
This project aims to provide a Pythonic and developer-friendly interface for Magalu Cloud services, inspired by the official Go SDK while remaining completely independent from Magalu Cloud and its maintainers. The project is community-driven and maintained by contributors.
Disclaimer
This is an unofficial SDK and is not affiliated with, endorsed by, or maintained by Magalu Cloud. For the official SDKs and tools, visit the Magalu Cloud GitHub organization.
Features
- Pythonic API design
- Async support using
httpx - Typed models with Pydantic
- Modular service architecture
- Easy authentication using API Tokens
- Open-source and community-driven
- Designed for automation, scripting, and backend applications
Installation
Using pip
pip install mgc-sdkDevelopment installation
git clone https://github.com/kayqueGovetri/mgc-sdk-python.git
cd mgc-sdk-python
pip install -e .Quick Start
from mgc import MgcClient
client = MgcClient( api_token="YOUR_API_TOKEN")
instances = client.compute.instances.list()
for instance in instances: print(instance.name)Authentication
The SDK authenticates using a Magalu Cloud API Token.
from mgc import MgcClient
client = MgcClient( api_token="YOUR_API_TOKEN")For information about generating API tokens, consult the official Magalu Cloud documentation.
← Back to projects