Netflix Conductor Python SDK
Project description
Netflix Conductor SDK
conductor-python
repository provides the client SDKs to build Task Workers in Python
Quick Start
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 loggingfalse
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
- example:
update_interval
: Time interval in seconds to refresh metrics into the file- example:
0.1
means metrics are updated every 0.1s, or 100ms
- example:
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
Built Distribution
File details
Details for the file conductor-python-1.0.37.tar.gz
.
File metadata
- Download URL: conductor-python-1.0.37.tar.gz
- Upload date:
- Size: 81.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9339918d365ed47aff26ceac53e41fb0753da15d90198f99b8dae90af09ce82 |
|
MD5 | 55fda6b850757ffd2fbde622cf44846d |
|
BLAKE2b-256 | 97b003cde451fb64ad1db6f418cf2871596026b95b77ed35b8294e337e46ba82 |
File details
Details for the file conductor_python-1.0.37-py3-none-any.whl
.
File metadata
- Download URL: conductor_python-1.0.37-py3-none-any.whl
- Upload date:
- Size: 153.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f2fdd62b93ff3ff431027604106ef74667d8f4f0cb85c82bbb0145a1b492f9 |
|
MD5 | 1645b06fcf5edcfcc9c21ba1d736b28c |
|
BLAKE2b-256 | 4e96243332ff9fe281b47d8f45e69dcfa0af744efad723a699d1e203af1673eb |