PyPowerAutomate


NamePyPowerAutomate JSON
Version 1.0 PyPI version JSON
download
home_pageNone
SummaryLibrary to generate Power Automate Flow, Actions, and Legacy packages
upload_time2024-04-16 06:14:45
maintainerNone
docs_urlNone
authorTomoaki Tani
requires_python>=3.10
licenseCopyright 2024 NTT Security (Japan) KK Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords powerautomate rpa
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```bash
pip install PyPowerAutomate
```

## Quick Start

Here's a simple example to get you started:

```python
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.

- [Power Automate Management](https://powerautomate.microsoft.com/en-us/connectors/details/shared_flowmanagement/power-automate-management/)
- [Approvals](https://powerautomate.microsoft.com/en-us/connectors/details/shared_approvals/approvals/)
- [Office 365 Outlook](https://powerautomate.microsoft.com/en-us/connectors/details/shared_office365/office-365-outlook/)
- [SharePoint](https://powerautomate.microsoft.com/en-us/connectors/details/shared_sharepointonline/sharepoint/)
- [Dropbox](https://powerautomate.microsoft.com/en-us/connectors/details/shared_dropbox/dropbox/)
- [Teams](https://powerautomate.microsoft.com/en-us/connectors/details/shared_teams/microsoft-teams/)

## Documentation

[Documentation of PyPowerAutomate](https://ntt-security-japan.github.io/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](https://github.com/NTT-Security-Japan/PyPowerAutomate/LICENSE) for more details.

---

Happy Automating! 🚀

---


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyPowerAutomate",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "PowerAutomate, RPA",
    "author": "Tomoaki Tani",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/55/ec/3b9ad4cdb422e298f49c6284057ee1040a1072edd705e471c82eba81d252/pypowerautomate-1.0.tar.gz",
    "platform": null,
    "description": "# PyPowerAutomate\n\n*PyPowerAutomate is not affiliated with Microsoft Corporation.*\n\n## Overview\n\nPyPowerAutomate 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.\n\n## Features\n\n- **Flow Creation**: Easily define and create Power Automate flows in JSON format.\n- **Package Creation**: Easily create a legacy package that could import to Power Automate Platform\n- **Customization**: Tailor your flows with dynamic parameters and custom logic.\n- **Compatibility**: Seamless integration with existing Power Automate infrastructure.\n\n## Installation\n\nTo install PyPowerAutomate, run the following command in your terminal:\n\n```bash\npip install PyPowerAutomate\n```\n\n## Quick Start\n\nHere's a simple example to get you started:\n\n```python\nfrom pypowerautomate.flow import Flow\nfrom pypowerautomate.triggers import ManualTrigger\nfrom pypowerautomate.actions import InitVariableAction,IncrementVariableAction,VariableTypes\nfrom pypowerautomate.package import Package\n\nflow = Flow()\n\nflow.set_trigger(ManualTrigger(\"Button\"))\n\nflow.add_top_action(InitVariableAction(\"action1\",\"a\",VariableTypes.integer,1))\nflow.append_action(IncrementVariableAction(\"action2\",\"a\",2))\n\npackage = Package(\"incremental_test\",flow)\npackage.export_zipfile()\n```\n\nThis example creates manual trigger and 2 actions. Then export the flow as lagacy package(zip file).\nYou can import the flow by uploading `incremental_test.zip` to Power Automate. \n\n## Supported Triggers\n\n- Manual Trigger\n- Schedule Trigger\n\n## Supported Build-in Actions\n\n- Variable\n- Conditionals\n- Loops\n- Data Operetions\n- Time\n- HTTP (requires Premium subscription)\n\n## Supported Connectors\n\nCurrently, PyPowerAutomate supports following connectors.\n\n- [Power Automate Management](https://powerautomate.microsoft.com/en-us/connectors/details/shared_flowmanagement/power-automate-management/)\n- [Approvals](https://powerautomate.microsoft.com/en-us/connectors/details/shared_approvals/approvals/)\n- [Office 365 Outlook](https://powerautomate.microsoft.com/en-us/connectors/details/shared_office365/office-365-outlook/)\n- [SharePoint](https://powerautomate.microsoft.com/en-us/connectors/details/shared_sharepointonline/sharepoint/)\n- [Dropbox](https://powerautomate.microsoft.com/en-us/connectors/details/shared_dropbox/dropbox/)\n- [Teams](https://powerautomate.microsoft.com/en-us/connectors/details/shared_teams/microsoft-teams/)\n\n## Documentation\n\n[Documentation of PyPowerAutomate](https://ntt-security-japan.github.io/PyPowerAutomate/)\n\n## Contributing\n\nThank 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:\n\n### Contributing Code\n\n1. 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.\n\n2. 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.\n\n3. Code Review: The project maintainers will review your pull request. If there are any comments, please respond to them actively.\n\n### Code of Conduct\n\nWe 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:\n\n- Respect Each Other: Treat everyone working on the project respectfully, regardless of background.\n\n- Promote Inclusivity: Actively promote inclusivity and welcome diverse perspectives.\n\n- Maintain a Harassment-Free Environment: Avoid any behavior seen as harassment and maintain a harassment-free environment.\n\n## License\n\nPyPowerAutomate is licensed under the BSD-3-clause license. See [LICENSE](https://github.com/NTT-Security-Japan/PyPowerAutomate/LICENSE) for more details.\n\n---\n\nHappy Automating! \ud83d\ude80\n\n---\n\n",
    "bugtrack_url": null,
    "license": "Copyright 2024 NTT Security (Japan) KK  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \u201cAS IS\u201d AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Library to generate Power Automate Flow, Actions, and Legacy packages",
    "version": "1.0",
    "project_urls": {
        "Blog": "https://jp.security.ntt/tech_blog",
        "Homepage": "https://github.com/NTT-Security-Japan/PyPowerAutomate",
        "Issues": "https://github.com/NTT-Security-Japan/PyPowerAutomate/issues"
    },
    "split_keywords": [
        "powerautomate",
        " rpa"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5fc427f673b3ab3ad6abf189b0c0b9407e596fda114b387e8f38ef87a180935",
                "md5": "b9b992cf999bd58e75bee0a63aba921d",
                "sha256": "556e893fddb23fd112c1afeab747d1b49aef95d7318df93996cb86f1de347500"
            },
            "downloads": -1,
            "filename": "pypowerautomate-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b9b992cf999bd58e75bee0a63aba921d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 45687,
            "upload_time": "2024-04-16T06:14:43",
            "upload_time_iso_8601": "2024-04-16T06:14:43.623552Z",
            "url": "https://files.pythonhosted.org/packages/e5/fc/427f673b3ab3ad6abf189b0c0b9407e596fda114b387e8f38ef87a180935/pypowerautomate-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "55ec3b9ad4cdb422e298f49c6284057ee1040a1072edd705e471c82eba81d252",
                "md5": "952a6dbaa9cf6c6c5812111242b3fbbb",
                "sha256": "6c7e42855922deeee26f4b7b34462e3f45adc26fadc8ed4c735c822ec16fb6b2"
            },
            "downloads": -1,
            "filename": "pypowerautomate-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "952a6dbaa9cf6c6c5812111242b3fbbb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 36852,
            "upload_time": "2024-04-16T06:14:45",
            "upload_time_iso_8601": "2024-04-16T06:14:45.764007Z",
            "url": "https://files.pythonhosted.org/packages/55/ec/3b9ad4cdb422e298f49c6284057ee1040a1072edd705e471c82eba81d252/pypowerautomate-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 06:14:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "NTT-Security-Japan",
    "github_project": "PyPowerAutomate",
    "github_not_found": true,
    "lcname": "pypowerautomate"
}
        
Elapsed time: 0.23351s