Codemagic

A mobile-first CI/CD.

Integrate the Codemagic API with the Python API

Setup the Codemagic API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Codemagic and Python remarkably fast. Free for developers.

Create Application with the Codemagic API

Creates a new application codemagic. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
Create Variable with the Codemagic API

Create a variable in the specified workflow. See the documentation

 
Try it
List Applications with the Codemagic API

List applications in codemagic. See the documentation

 
Try it

Overview of Codemagic

Codemagic API offers a way to automate your mobile app development and delivery processes. By integrating with Pipedream, you can invoke workflows that react to events in your Git repository, automate build tasks, deploy applications, send notifications, and more. It's a powerful ally for developers looking to streamline the CI/CD pipeline for their mobile applications.

Connect Codemagic

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    codemagic: {
      type: "app",
      app: "codemagic",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.codemagic.io/apps`,
      headers: {
        "x-auth-token": `${this.codemagic.$auth.api_token}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}