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.

Filename, size & hash SHA256 hash help File type Python version Upload date
arachno-0.3.0-py3-none-any.whl (22.5 kB) Copy SHA256 hash SHA256 Wheel py3
arachno-0.3.0.tar.gz (8.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page