https://github.com/kanaries/gw-dsl-parser-py
https://github.com/kanaries/gw-dsl-parser-py
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanaries/gw-dsl-parser-py
- Owner: Kanaries
- License: apache-2.0
- Created: 2023-09-13T02:50:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T08:02:33.000Z (about 1 year ago)
- Last Synced: 2025-04-01T17:58:04.455Z (6 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gw-dsl-parser-py
## Install
```
pip install gw-dsl-parser
```## Develop
```
pip install ./python ./scripts/download_wasm.py
```## Example
```python
from gw_dsl_parser import get_sql_from_payloadpayload = {"workflow": [{"type": "view", "query": [{"op": "aggregate", "groupBy": [], "measures": [{"field": "*", "agg": "count", "asFieldKey": "count"}]}]}]}
table_name = "test_table"
sql = get_sql_from_payload(table_name, payload)
```