https://github.com/palestamp/arachno
DSL to orchestrate coroutines
https://github.com/palestamp/arachno
Last synced: 23 days ago
JSON representation
DSL to orchestrate coroutines
- Host: GitHub
- URL: https://github.com/palestamp/arachno
- Owner: palestamp
- License: gpl-3.0
- Created: 2018-10-29T20:37:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T22:19:20.000Z (over 7 years ago)
- Last Synced: 2025-11-30T17:50:17.671Z (7 months ago)
- Language: Python
- Size: 63.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=======
arachno
=======
Utility to orchestrate coroutines via DSL.
Example
-------
.. code-block:: js
{
"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"
}
}
}
}