GoodData AAC YAML / Declarative API code converters (WASM-powered)
Project description
gooddata-code-convertors
GoodData AAC YAML / Declarative API code converters, powered by WebAssembly.
Provides bidirectional conversion between AAC YAML format (used by the gdc-analytics-as-code VSCode plugin) and GoodData Declarative API format.
Installation
pip install gooddata-code-convertors
Usage
YAML-to-Declarative functions accept parsed YAML dicts (e.g. from yaml.safe_load),
not raw YAML strings.
import yaml
from gooddata_code_convertors import yaml_metric_to_declarative, declarative_metric_to_yaml
# AAC YAML -> Declarative API
with open("metrics/revenue.yaml") as f:
parsed = yaml.safe_load(f)
declarative = yaml_metric_to_declarative(parsed)
# Declarative API -> AAC YAML
yaml_result = declarative_metric_to_yaml(declarative)
Available Converters
YAML -> Declarative API
yaml_dataset_to_declarativeyaml_date_dataset_to_declarativeyaml_metric_to_declarativeyaml_visualisation_to_declarativeyaml_dashboard_to_declarativeyaml_plugin_to_declarativeyaml_attribute_hierarchy_to_declarative
Declarative API -> YAML
declarative_dataset_to_yamldeclarative_date_instance_to_yamldeclarative_metric_to_yamldeclarative_visualisation_to_yamldeclarative_dashboard_to_yamldeclarative_plugin_to_yamldeclarative_attribute_hierarchy_to_yaml
Utilities
build_afm_execution
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gooddata_code_convertors-11.35.0a1-py3-none-any.whl.
File metadata
- Download URL: gooddata_code_convertors-11.35.0a1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef22abce792b6e8efd2e9525e85a217fcace6c260436c16a4735ba62bb7c0c4c
|
|
| MD5 |
8d9f338b6da99589b04dc77ab14c3bea
|
|
| BLAKE2b-256 |
e3b2bc22ecfa2a67090a3f9912e0df02c972784851d06f5df67f599a57991f3e
|
Provenance
The following attestation bundles were made for gooddata_code_convertors-11.35.0a1-py3-none-any.whl:
Publisher:
sdk-publish-pypi-convertors.yml on gooddata/gdc-ui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gooddata_code_convertors-11.35.0a1-py3-none-any.whl -
Subject digest:
ef22abce792b6e8efd2e9525e85a217fcace6c260436c16a4735ba62bb7c0c4c - Sigstore transparency entry: 1460250457
- Sigstore integration time:
-
Permalink:
gooddata/gdc-ui@feca4fcb27063d8df5f731873a3b006ddc2bdaf8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/gooddata
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
sdk-publish-pypi-convertors.yml@feca4fcb27063d8df5f731873a3b006ddc2bdaf8 -
Trigger Event:
workflow_dispatch
-
Statement type: