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.15.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.15.0
File Size Uploaded Provenance Actions
camunda_client-0.15.0.tar.gz 25.0 kB Without provenance Details for camunda_client-0.15.0.tar.gz

Built distribution (wheel)

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

Total release size: 55.6 kB

Release files / camunda_client-0.15.0.tar.gz

Download URL camunda_client-0.15.0.tar.gz
Size 25.0 kB
Tags Source
SHA-256 checksum
How to use checksums
111951a7f13bec76b8c363c66fe1f470d0cbad5f81245cb417b5451b1699c5a1
BLAKE2b-256 checksum
How to use checksums
9a0def6c08d882ea8a2b5ad60141611c6c043692723e024ce5195274542aaecd
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.15.0-py3-none-any.whl

Download URL camunda_client-0.15.0-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc02217b017c24dcc720564387aa7ee232ec4cdec97e5bb96916fd9186ed2d32
BLAKE2b-256 checksum
How to use checksums
4cda54116ca86a94f46591c79890cb058d892a4241c71feda29c1befeebfbe89
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.15.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.15.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