[[TOC]]
With the magic of Codemagic, you can build, test, and publish Flutter apps with zero configuration and run builds in controlled environments using custom workflows. If you have a native Android, iOS, or React Native app, Codemagic has got your back, just use the codemagic.
For more information, visit the Codemagic api docs setup guide.
To install Codemagic Python SDK, simply execute the following command in a terminal:
pip install codemagic
First of all you need to get token. The access token is available via the Codemagic UI in User settings > Integrations > Codemagic API > Show.
-
Create Codemagic instance
from codemagic import Codemagic, Build, BuildStatus codemagic = Codemagic(token=token)
-
Create
build
.build: Build = codemagic.start_build(app_id=app_id, workflow_id=workflow_id, branch=branch, environment=environment) if build.status == BuildStatus.QUEUED: print("Build request start success.")
-
Get
list build
. You can filterbuilds
base on parameters.builds: [Build] = codemagic.list_of_builds()
-
Get
details of build
.build: Build = codemagic.get_build(pk=pk)
We currently support Python 3.6+.
- [] Documentation
The MIT License (MIT). Please see License File for more information.