DolphinScheduler/dolphinscheduler-python/pydolphinscheduler
2022-05-16 20:17:44 +08:00
..
docs [improve][python] Specify warning group when deploy process-definition (#9773) 2022-04-27 22:02:14 +08:00
src/pydolphinscheduler [python] Fix pre_submit_check error when local params in tasks (#10032) 2022-05-16 20:17:44 +08:00
tests [python] Fix pre_submit_check error when local params in tasks (#10032) 2022-05-16 20:17:44 +08:00
.coveragerc [python] Add tox for out of box test (#8837) 2022-03-12 21:27:36 +08:00
.flake8 [Feature-8591][Python] Add pre-commit to run basic test before commit (#8843) 2022-03-14 20:51:55 +08:00
.isort.cfg
.pre-commit-config.yaml [python] Add autoflake to auto rm unused import (#8897) 2022-03-16 09:33:26 +08:00
DEVELOP.md [Feature-8369][Document]Add docs building test instructions in pydolphinscheduler DEVELOP.md (#8369) (#8693) 2022-03-29 10:56:53 +08:00
LICENSE [python] Add LICENSE and NOTICE to python dist package (#8768) 2022-03-09 19:50:43 +08:00
NOTICE [python] Add LICENSE and NOTICE to python dist package (#8768) 2022-03-09 19:50:43 +08:00
pytest.ini [python] Fix change exists pd attribute user error (#9140) 2022-03-24 15:24:02 +08:00
README.md [python] Add mechanism cli only with version as subcommand (#8516) 2022-02-24 16:05:55 +08:00
RELEASE.md
setup.cfg
setup.py [chore] Change release version to 3.0.0-beta-1 (#9957) 2022-05-12 21:49:21 +08:00
tox.ini [python] Add integrated test to python gateway server (#8966) 2022-03-18 16:24:40 +08:00
UPDATING.md [python] Support read config in env variable (#9517) 2022-04-15 15:46:44 +08:00

pydolphinscheduler

PyPi Version PyPi Python Versions PyPi License PyPi Status PyPi Downloads

Code style: black Imports: isort GitHub Build

PyDolphinScheduler is python API for Apache DolphinScheduler, which allow you definition your workflow by python code, aka workflow-as-codes.

Quick Start

Installation

# Install
$ pip install apache-dolphinscheduler

# Verify installation is successful, it will show the version of apache-dolphinscheduler, here we use 0.1.0 as example
$ pydolphinscheduler version
0.1.0

Here we show you how to install and run a simple example of pydolphinscheduler

Start Server And Run Example

Before you run an example, you have to start backend server. You could follow development setup section "DolphinScheduler Standalone Quick Start" to set up developer environment. You have to start backend and frontend server in this step, which mean that you could view DolphinScheduler UI in your browser with URL http://localhost:12345/dolphinscheduler

After backend server is being start, all requests from pydolphinscheduler would be sent to backend server. And for now we could run a simple example by:

# Please make sure your terminal could 
curl https://raw.githubusercontent.com/apache/dolphinscheduler/dev/dolphinscheduler-python/pydolphinscheduler/examples/tutorial.py -o ./tutorial.py
python ./tutorial.py

NOTICE: Since Apache DolphinScheduler's tenant is requests while running command, you might need to change tenant value in example/tutorial.py. For now the value is tenant_exists, please change it to username exists in you environment.

After command execute, you could see a new project with single process definition named tutorial in the UI-project list.

Develop

Until now, we finish quick start by an example of pydolphinscheduler and run it. If you want to inspect or join pydolphinscheduler develop, you could take a look at develop

Release

If you are interested in how to release PyDolphinScheduler, you could go and see at release

What's more

For more detail information, please go to see PyDolphinScheduler document