Skip to main content

Swift Conductor Client SDK for Python

⭐ Swift Conductor

Show support for Swift Conductor. Please help spread the awareness by starring Swift Conductor repo.

GitHub stars

Install:

pip install swift-conductor-client

Create Tasks and Workflows

Create task and workflow definitions.

Execute workflows.

Manage tasks.

Create Task Workers

Create and run task workers

Testing Workflows

Test your workflows

Error Handling

Handle errors returned Client SDK methods

Configuration

Configure Swift Conductor API URL like this:

from swift_conductor.configuration import Configuration

configuration = Configuration(
    server_api_url='http://localhost:8080/api',
    debug=True
)
  • server_api_url : Swift Conductor API URL. For example, if you are running a local server the URL will look like this http://localhost:8080/api.
  • debug: Set to True for verbose logging and False to print only errors.

Metrics Configuration for WorkerHost (Optional)

Swift 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 to store the metrics. Ensure that you have already created this folder, or the program should 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.

Pass the MetricsSettings object to the WorkerHost constructor.

Metadata

Release files for swift-conductor-client 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swift-conductor-client 1.2.0
File Size Uploaded Provenance Actions
swift-conductor-client-1.2.0.tar.gz 74.1 kB Without provenance Details for swift-conductor-client-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swift-conductor-client 1.2.0
File Interpreter ABI Platform Actions
swift_conductor_client-1.2.0-py3-none-any.whl Python 3 none any Details for swift_conductor_client-1.2.0-py3-none-any.whl

Total release size: 201.1 kB

Release files / swift-conductor-client-1.2.0.tar.gz

Download URL swift-conductor-client-1.2.0.tar.gz
Size 74.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4bef7882f2cf8e551d8f44982acc17b8eaec9d7d20eca1150bce8cf85f4a5df
BLAKE2b-256 checksum
How to use checksums
f2abd1fc09f0ded1ab48e78443bcb00c4a3ac128361477b288f24038d5e6c61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / swift_conductor_client-1.2.0-py3-none-any.whl

Download URL swift_conductor_client-1.2.0-py3-none-any.whl
Size 127.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b958a70c8a21c93c69ed14cd7e30aab4a24a760724f486741706f4a796adb6dd
BLAKE2b-256 checksum
How to use checksums
05f8c655af40533a51eb612f95bbcec6618477c433578e3968fc0384010f9bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for swift-conductor-client 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page