Skip to main content

Library to generate Power Automate Flow, Actions, and Legacy packages

Project description

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! 🚀


Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypowerautomate-1.0.tar.gz (36.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypowerautomate-1.0-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file pypowerautomate-1.0.tar.gz.

File metadata

  • Download URL: pypowerautomate-1.0.tar.gz
  • Upload date:
  • Size: 36.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pypowerautomate-1.0.tar.gz
Algorithm Hash digest
SHA256 6c7e42855922deeee26f4b7b34462e3f45adc26fadc8ed4c735c822ec16fb6b2
MD5 952a6dbaa9cf6c6c5812111242b3fbbb
BLAKE2b-256 55ec3b9ad4cdb422e298f49c6284057ee1040a1072edd705e471c82eba81d252

See more details on using hashes here.

File details

Details for the file pypowerautomate-1.0-py3-none-any.whl.

File metadata

  • Download URL: pypowerautomate-1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pypowerautomate-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 556e893fddb23fd112c1afeab747d1b49aef95d7318df93996cb86f1de347500
MD5 b9b992cf999bd58e75bee0a63aba921d
BLAKE2b-256 e5fc427f673b3ab3ad6abf189b0c0b9407e596fda114b387e8f38ef87a180935

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page