← Python

Run Python Code with Python API

Pipedream makes it easy to connect APIs for Python and 1000+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Run Python Code with the Python API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

Create a workflow to Run Python Code with the Python API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Run Python Code action
    1. Connect your Python account
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Run Python Code with Python API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Python
 
Try it
Run Python Code with Python API on New Item in Feed from RSS API
RSS + Python
 
Try it
Run Python Code with Python API on New Message from Discord API
Discord + Python
 
Try it
Run Python Code with Python API on New Message In Channels from Slack API
Slack + Python
 
Try it
Run Python Code with Python API on New Message in Channel from Discord Bot API
Discord Bot + Python
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Run Python Code on Python
Description:Write Python and use any of the 350k+ PyPi packages available. Refer to the [Pipedream Python docs](https://pipedream.com/docs/code/python) to learn more.
Version:0.0.2
Key:python-run-python-code

Code

import python from "../../python.app.mjs";

export default {
  name: "Run Python Code",
  version: "0.0.2",
  key: "python-run-python-code",
  description: "Write Python and use any of the 350k+ PyPi packages available. Refer to the [Pipedream Python docs](https://pipedream.com/docs/code/python) to learn more.",
  props: {
    python,
  },
  type: "action",
  methods: {},
  async run({
    steps, $,
  }) {
    // Placeholder action for Python code app
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
PythonpythonappThis component uses the Python app.

Authentication

The Python API does not require authentication.

About Python

Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.