DolphinScheduler/dolphinscheduler-python/pydolphinscheduler
Jiajie Zhong ec4ce2b573
[python] Add config mechanism and cli subcommand config (#8585)
* [python] Add config mechanism and cli subcommand config

* Add configuration.py mechanism for more easy change config
  and move some configs to it. It mechanism including
  configuration.py module and default_config.yaml file
* Add `config` for cli subcommand allow users initialize, get,
  set configs

close: #8344

* Change setup.py format
2022-03-01 11:16:44 +08:00
..
docs [python] Add mechanism cli only with version as subcommand (#8516) 2022-02-24 16:05:55 +08:00
src/pydolphinscheduler [python] Add config mechanism and cli subcommand config (#8585) 2022-03-01 11:16:44 +08:00
tests [python] Add config mechanism and cli subcommand config (#8585) 2022-03-01 11:16:44 +08:00
.coveragerc [ci][python] Add coverage check in CI (#6861) 2021-11-17 09:46:40 +08:00
.flake8 [python] Initiate document for pydolphinscheduler (#8005) 2022-01-26 12:37:57 +08:00
.isort.cfg [ci][python] Add isort to sort out import (#6871) 2021-11-17 11:48:52 +08:00
DEVELOP.md [python] Clean deps and prepare release (#8210) 2022-01-28 10:12:00 +08:00
pytest.ini Add CI test for python API (#6636) 2021-11-04 11:19:11 +08:00
README.md [python] Add mechanism cli only with version as subcommand (#8516) 2022-02-24 16:05:55 +08:00
RELEASE.md [python] Clean deps and prepare release (#8210) 2022-01-28 10:12:00 +08:00
setup.cfg Add Python API implementation of workflows-as-code (#6269) 2021-10-31 20:35:46 +08:00
setup.py [python] Add config mechanism and cli subcommand config (#8585) 2022-03-01 11:16: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