https://github.com/ali-zahedi/codemagic
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.
https://github.com/ali-zahedi/codemagic
build-code build-tool cd ci cicd codemagic python workflow
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ali-zahedi/codemagic
- Owner: ali-zahedi
- License: mit
- Created: 2021-05-18T07:46:27.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2021-05-21T20:39:21.000Z (almost 5 years ago)
- Last Synced: 2026-01-05T21:49:01.954Z (about 2 months ago)
- Topics: build-code, build-tool, cd, ci, cicd, codemagic, python, workflow
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




[[_TOC_]]
# Overview
With the magic of [Codemagic](https://codemagic.io), 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](https://docs.codemagic.io/rest-api/overview/) setup guide.
# Installation
To install Codemagic Python SDK, simply execute the following command in a terminal:
```shell script
pip install codemagic
```
# Usage
First of all you need to get token. The access token is available via the Codemagic UI in **User settings > Integrations > Codemagic API > Show**.
1. Create Codemagic instance
```python
from codemagic import Codemagic, Build, BuildStatus
codemagic = Codemagic(token=token)
```
1. Create `build`.
```python
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.")
```
1. Get `list build`. You can filter `builds` base on parameters.
```python
builds: [Build] = codemagic.list_of_builds()
```
1. Get `details of build`.
```python
build: Build = codemagic.get_build(pk=pk)
```
# Supported Python Versions
We currently support Python 3.6+.
# TODO
- [] Documentation
## Develop
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.