Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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_declarative
  • yaml_date_dataset_to_declarative
  • yaml_metric_to_declarative
  • yaml_visualisation_to_declarative
  • yaml_dashboard_to_declarative
  • yaml_plugin_to_declarative
  • yaml_attribute_hierarchy_to_declarative

Declarative API -> YAML

  • declarative_dataset_to_yaml
  • declarative_date_instance_to_yaml
  • declarative_metric_to_yaml
  • declarative_visualisation_to_yaml
  • declarative_dashboard_to_yaml
  • declarative_plugin_to_yaml
  • declarative_attribute_hierarchy_to_yaml

Utilities

  • build_afm_execution

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gooddata_code_convertors-11.47.0a1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file gooddata_code_convertors-11.47.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for gooddata_code_convertors-11.47.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 5380df5dacca65bff80e9319a0e3c14c75785b0345b9f88b41499cbced072c49
MD5 6def907673ae66459265d23b60c5c9b3
BLAKE2b-256 cfff3f45adbdde59cbe31c0d554d7234e8505aa47348bc8920204c4f3aea559f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gooddata_code_convertors-11.47.0a1-py3-none-any.whl:

Publisher: sdk-publish-pypi-convertors.yml on gooddata/gdc-ui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

11.53.0

1 file

11.52.0

1 file

11.51.0

1 file

11.50.0

1 file

11.49.0

1 file

11.48.0

1 file

11.47.0

1 file

This release

11.47.0a1 This release

1 file

11.46.0

1 file

11.45.0

1 file

11.44.0

1 file

11.43.0

1 file

11.42.0

1 file

11.41.0

1 file

11.40.0

1 file

11.39.0

1 file

11.38.0

1 file

11.37.0

1 file

11.36.0

1 file

11.35.0

1 file

11.34.0

1 file

11.33.0

1 file

11.32.0

1 file

11.31.0

1 file

11.30.0

1 file

11.29.0

1 file

11.28.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page