Skip to main content

Official Python client for invoking mQuark Actionful endpoints — single, batch, and pipeline.

Project description

mquark-actionful-client

Official Python client for invoking mQuark Actionful endpoints.

See the full documentation and examples at github.com/m-quark/ActionfulClient.

Installation

pip install mquark-actionful-client

Requires Python 3.10+ and httpx.

Quick start

from mquark_actionful import ActionfulClient, ActionfulClientOptions

client = ActionfulClient(ActionfulClientOptions(
    endpoint_url="https://...",
    access_token="...",
    access_secret="...",
))

# Single invocation
result = await client.invoke({"orderId": 42})

# Batch
results = await client.invoke_batch([item1, item2, item3])

# Stream
async for r in client.stream_batch(items):
    if r.is_success:
        print(r.output)

# Async pipeline
async for result in client.process(async_item_stream()):
    await sink.write(result)

# Close when done
await client.aclose()
# or use as context manager: async with ActionfulClient(...) as client: ...

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mquark_actionful_client-1.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mquark_actionful_client-1.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file mquark_actionful_client-1.0.2.tar.gz.

File metadata

  • Download URL: mquark_actionful_client-1.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mquark_actionful_client-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fe725e9078a58d069092883542ca422c239ff3a34a34b9c7bf1a00080403bca3
MD5 aa1ae1e3648cd534204e886017c8635c
BLAKE2b-256 773397649618ac362a90a79e8346aba8e3ea06b0584796e1c8f6a29bbc380615

See more details on using hashes here.

File details

Details for the file mquark_actionful_client-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mquark_actionful_client-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb81882faa7fb097d3aa7185dd29627607bf28fd384c250f771bcf89b4c2b0fe
MD5 bcec95c751c8dddb644a44e63c191b03
BLAKE2b-256 c4fd679eac2e9e8390de423b1e22790b28d5c38d351ab5b04a548fdfa2ce2c88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page