Skip to main content

PyPowerAutomate

PyPowerAutomate is not affiliated with Microsoft Corporation.

Overview

PyPowerAutomate is a Python package designed for creating, managing, and deploying Microsoft Power Automate Flows programmatically. This library provides a simple and efficient way to define Power Automate Flows in JSON format directly from Python code. Whether you're an automation expert, a developer looking to integrate Power Automate into your Python projects, or an enthusiast exploring the realms of workflow automation, Power Automate Library is your go-to tool.

Features

  • Flow Creation: Easily define and create Power Automate flows in JSON format.
  • Package Creation: Easily create a legacy package that could import to Power Automate Platform
  • Customization: Tailor your flows with dynamic parameters and custom logic.
  • Compatibility: Seamless integration with existing Power Automate infrastructure.

Installation

To install PyPowerAutomate, run the following command in your terminal:

pip install PyPowerAutomate

Quick Start

Here's a simple example to get you started:

from pypowerautomate.flow import Flow
from pypowerautomate.triggers import ManualTrigger
from pypowerautomate.actions import InitVariableAction,IncrementVariableAction,VariableTypes
from pypowerautomate.package import Package

flow = Flow()

flow.set_trigger(ManualTrigger("Button"))

flow.add_top_action(InitVariableAction("action1","a",VariableTypes.integer,1))
flow.append_action(IncrementVariableAction("action2","a",2))

package = Package("incremental_test",flow)
package.export_zipfile()

This example creates manual trigger and 2 actions. Then export the flow as lagacy package(zip file). You can import the flow by uploading incremental_test.zip to Power Automate.

Supported Triggers

  • Manual Trigger
  • Schedule Trigger

Supported Build-in Actions

  • Variable
  • Conditionals
  • Loops
  • Data Operetions
  • Time
  • HTTP (requires Premium subscription)

Supported Connectors

Currently, PyPowerAutomate supports following connectors.

Documentation

Documentation of PyPowerAutomate

Contributing

Thank you for considering contributing to this project! We welcome all contributions, from minor fixes to major features. To ensure effective and smooth collaboration, please follow these guidelines:

Contributing Code

  1. Check and Open Issues: Before contributing, please check if there are existing issues on GitHub related to your problem or suggestion. If not, open a new one and share the details.

  2. Pull Requests: If you want to make changes, first fork the repository, create a branch for your topic, and then submit a pull request. In your pull request, clearly explain what changes you made and why.

  3. Code Review: The project maintainers will review your pull request. If there are any comments, please respond to them actively.

Code of Conduct

We aim to provide all contributors and maintainers with a safe and positive experience. Therefore, we ask you to follow this code of conduct, which is based on the Contributor Covenant:

  • Respect Each Other: Treat everyone working on the project respectfully, regardless of background.

  • Promote Inclusivity: Actively promote inclusivity and welcome diverse perspectives.

  • Maintain a Harassment-Free Environment: Avoid any behavior seen as harassment and maintain a harassment-free environment.

License

PyPowerAutomate is licensed under the BSD-3-clause license. See LICENSE for more details.


Happy Automating! 🚀


Metadata

Release files for PyPowerAutomate 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyPowerAutomate 1.0
File Size Uploaded
pypowerautomate-1.0.tar.gz 36.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyPowerAutomate 1.0
File Interpreter ABI Platform
pypowerautomate-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 82.5 kB

Release files / pypowerautomate-1.0.tar.gz

Download URL pypowerautomate-1.0.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6c7e42855922deeee26f4b7b34462e3f45adc26fadc8ed4c735c822ec16fb6b2
BLAKE2b-256 checksum
How to use checksums
55ec3b9ad4cdb422e298f49c6284057ee1040a1072edd705e471c82eba81d252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / pypowerautomate-1.0-py3-none-any.whl

Download URL pypowerautomate-1.0-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
556e893fddb23fd112c1afeab747d1b49aef95d7318df93996cb86f1de347500
BLAKE2b-256 checksum
How to use checksums
e5fc427f673b3ab3ad6abf189b0c0b9407e596fda114b387e8f38ef87a180935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page