Skip to content

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.

License

Notifications You must be signed in to change notification settings

ali-zahedi/codemagic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GitHub GitHub image info

[[TOC]]

Overview

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.

Installation

To install Codemagic Python SDK, simply execute the following command in a terminal:

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

    from codemagic import Codemagic, Build, BuildStatus
    
    codemagic = Codemagic(token=token)
  2. 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.")
  3. Get list build. You can filter builds base on parameters.

    builds: [Build] = codemagic.list_of_builds()
  4. Get details of build.

    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 for more information.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages