Skip to main content

camunda-client

This package includes clients such as CamundaEngineClient and ExternalTaskClient

In addition, there is an ExternalTaskWorker for working with ExternalTask

Installing

pip

pip install camunda-client

pdm

pdm add camunda-client

ExternalTask functional usage

Source code in examples/external_task

from camunda_client.worker import ExternalTaskWorker

from .enums import WorkerEnum


async def subscribe(
    topic: str,
    task_worker: ExternalTaskWorker,
) -> None:
    mapping = WorkerEnum.workers()
    async with task_worker.subscribe(topic) as task_contexts:
        async for task_context in task_contexts:
            async with task_context as task_dto:
                worker_cls = mapping[task_dto.topic_name]

                # Resolve the dependency on the DI container.
                # This initialization is provided as an example.
                worker = worker_cls()
                result = await worker.execute(task_dto)

                if result.is_success is False:
                    print(f"Task with id {task_dto.id} was failed")
                    await task_context.fail(error_message=result.message)
                else:
                    print(f"Task with id {task_dto.id} was completed")
                    await task_context.complete()

Metadata

Release files for camunda-client 0.16.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 camunda-client 0.16.0
File Size Uploaded Provenance Actions
camunda_client-0.16.0.tar.gz 26.6 kB Without provenance Details for camunda_client-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for camunda-client 0.16.0
File Interpreter ABI Platform Actions
camunda_client-0.16.0-py3-none-any.whl Python 3 none any Details for camunda_client-0.16.0-py3-none-any.whl

Total release size: 57.8 kB

Release files / camunda_client-0.16.0.tar.gz

Download URL camunda_client-0.16.0.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fb720a43a92353242175f08b3ec0c5a7d55e108148e0ba742290c544269947a3
BLAKE2b-256 checksum
How to use checksums
f79cb5ce5071b01c79f7fb45c3fba14ba27189193949bfe350c0db2b4af80ed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.0 CPython/3.11.9 Windows/10

Release files / camunda_client-0.16.0-py3-none-any.whl

Download URL camunda_client-0.16.0-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7df021d2d7390329cc5ae00501515a8a3311e82850a2b479c087fdb93711b92b
BLAKE2b-256 checksum
How to use checksums
b78bcff454d9a1a0c893eb2580498b2ce45a9364376158e82b727f541c027b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.0 CPython/3.11.9 Windows/10

Security for camunda-client 0.16.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.

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 release files No provenance

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