Skip to main content

DSL for coroutine orchestration

Project description

Utility to orchestrate coroutines via DSL.

Example

{
    "actions": {
        "target": {
            "operation": "search-api.get_product",
            "args": {
                "product_id": "${product_id}"
            },
            "defines": {
                "product-category": "result.category",
                "product-price": "result.price"
            },
            "options": {
                "timeout": "1s"
            }
        },
        "target-account": {
            "operation": "accounts-repository.get",
            "args": {
                "account_id": "${account_id}"
            },
            "defines": {
                "favorite-categories": "${account.favorite-categories}"
            },
            "options": {
                "timeout": "1s"
            }
        },
        "product-selector": {
            "operation": "product-stats.calculate_params",
            "args": {
                "input": {
                    "category": "${target.product-category}",
                    "country": "${target.product-price}",
                    "segment": "Germany"
                },
                "jitter_percent": 10
            },
            "defines": {
                "output-args": "value"
            }
        },
        "similar-products": {
            "operation": "search-api.search",
            "args": {
                "product_codes": "${product-selector.output-args}",
                "categories": {
                    "oneof": "${target-account.favorite-categories}"
                }
            },
            "options": {
                "timeout": "600ms"
            }
        }
    }
}

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

arachno-0.3.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

arachno-0.3.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file arachno-0.3.0.tar.gz.

File metadata

  • Download URL: arachno-0.3.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for arachno-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b50313bb4b0e6923665119b621713bd10e7c482c0b828a3725ab7b1c462e58f9
MD5 514953475f4d2cf72956ee5fd03bdec7
BLAKE2b-256 3f8d82e443709253cd23805c2f1d40f9fbaf5d7dd0937c0429e8cdddc3e2263f

See more details on using hashes here.

File details

Details for the file arachno-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: arachno-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for arachno-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5e879c629ed24d776312d41907f7edc4c40796dc7fe56e175ec93fdffe39a4
MD5 f73664915ed485e0ff4356921680ad04
BLAKE2b-256 d36128bac3794a83c0a3e36d8a390f691b0d23c311dbbae47ec36926d9846731

See more details on using hashes here.

Supported by

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