Skip to main content

Netflix Conductor Python SDK

Project description

Netflix Conductor SDK

conductor-python repository provides the client SDKs to build Task Workers in Python

Quick Start

  1. Setup conductor-python package
  2. Create and run Task Workers
  3. Create workflows using Code

Setup conductor python package

Create a virtual environment to build your package:

virtualenv conductor
source conductor/bin/activate

Get Conductor Python SDK

python3 -m pip install conductor-python

Server settings

Everything related to server settings should be done within Configuration class, by setting the required parameter when initializing an object, like this:

configuration = Configuration(
    server_api_url='https://play.orkes.io/api',
    debug=True
)
  • server_api_url : Conductor server address. e.g. http://localhost:8000/api if running locally
  • debug: true for verbose logging false to display only the errors

Authentication settings (optional)

Use if your conductor server requires authentication.

Access Control Setup

See Access Control for more details on role based access control with Conductor and generating API keys for your environment.

configuration = Configuration(
    authentication_settings=AuthenticationSettings(
        key_id='key',
        key_secret='secret'
    )
)

Metrics settings (optional)

Conductor uses Prometheus to collect metrics.

metrics_settings = MetricsSettings(
    directory='/path/to/folder',
    file_name='metrics_file_name.extension',
    update_interval=0.1,
)
  • directory: Directory where to store the metrics
    • make sure that you have created this folder before, or the program have permission to create it for you
  • file_name: File where the metrics are stored
    • example: metrics.log
  • update_interval: Time interval in seconds to refresh metrics into the file
    • example: 0.1 means metrics are updated every 0.1s, or 100ms

Next: Create and run Task Workers

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

conductor-python-1.0.35.tar.gz (80.6 kB view details)

Uploaded Source

Built Distribution

conductor_python-1.0.35-py3-none-any.whl (153.6 kB view details)

Uploaded Python 3

File details

Details for the file conductor-python-1.0.35.tar.gz.

File metadata

  • Download URL: conductor-python-1.0.35.tar.gz
  • Upload date:
  • Size: 80.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for conductor-python-1.0.35.tar.gz
Algorithm Hash digest
SHA256 3ab98b8ac0889785ba38c76dbaf8ebe799dd6b6d3715b3c4fa89aa95dc2019d0
MD5 c2463f1a94b8587c51260dc6d608490f
BLAKE2b-256 27c2e361e5d880d87afc42c7c4e66edf60f5b3a73a9ab2a40a1cdbc4050301de

See more details on using hashes here.

File details

Details for the file conductor_python-1.0.35-py3-none-any.whl.

File metadata

File hashes

Hashes for conductor_python-1.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 e7339b6a4d0ac7181c04be3d0d3bd6f3b68844f33c55d647c4eb795de3f40791
MD5 4504871d0b0e6add3c092a5b44bb5962
BLAKE2b-256 8657663aac8f2f46683f7e9ee4513e2c4a0d2cfac51ee0b711c1edf014422ac9

See more details on using hashes here.

Supported by

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