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.14.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.14.0
File Size Uploaded Provenance Actions
camunda_client-0.14.0.tar.gz 23.3 kB Without provenance Details for camunda_client-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 53.3 kB

Release files / camunda_client-0.14.0.tar.gz

Download URL camunda_client-0.14.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
afc7ee76b2c345d75faa958395f8b701242d1b5dba3292e737e43a8ee28e44ce
BLAKE2b-256 checksum
How to use checksums
33d7b94a406847a89d3935ae41751f5f89e9d8ce8ffd9eb9ddc35c12af6c21eb
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.14.0-py3-none-any.whl

Download URL camunda_client-0.14.0-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51e8fde1a771e92ebca5f84facb1e72e101856b4f9713e7a9cba63576e57f958
BLAKE2b-256 checksum
How to use checksums
9fac206890bd4c4f0180a0903856f99368d3c3285c101b0d717f6d3810b079d0
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.14.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.14.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