Skip to main content

Build your own data source for GoodData Cloud and GoodData Cloud Native.

Project description

GoodData FlexConnect

GoodData FlexConnect allows you to build your own data source for GoodData Cloud or Cloud Native.

FlexConnect works with a concept similar to 'table functions' that you may already know from database technologies.

  • To build your own data source, you implement one or more FlexConnect functions. The functions compute and return tabular data - how they do it is completely up to you.
  • The functions are hosted and invoked inside a FlexConnect server (which is included in this package).
  • A running FlexConnect server can be added as a data source to your GoodData Cloud or GoodData Cloud Native.
  • The functions available on FlexConnect server will be mapped to data sets within GoodData's Semantic Model and from then on can be used during report computation.

Getting Started using the FlexConnect Template

The easiest way to get started writing FlexConnect functions is to use the template repository. It provides a simple example of a FlexConnect function that can be used as a starting point for your own FlexConnect functions with all the necessary infrastructure in place. It also has a README that explains how to get started with the template and some general tips on how to write FlexConnect functions.

Getting started using the FlexConnect package directly

Install the package alongside the gooddata-flight-server using pip:

pip install gooddata-flight-server gooddata-flexconnect

Next, update the GoodData Flight Server configuration to load the FlexConnect functions.

[flexconnect]

# specify one or more modules that contain your FlexConnect function implementations
#
functions = [
    "flexconnect.your_function"
]

Then when running the GoodData Flight Server, use the --methods-provider option to load the FlexConnect. For example:

#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
SERVER_CMD="${SCRIPT_DIR}/.venv/bin/gooddata-flight-server"

export PYTHONPATH="${SCRIPT_DIR}/src"
export CONFIG_ENV="${1:-dev}"

$SERVER_CMD start \
              --methods-provider gooddata_flexconnect \
              --config \
                config/${CONFIG_ENV}.server.toml \
                config/flexconnect.config.toml \
              --logging-config config/default.logging.ini \
              --dev-log

Project details


Download files

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

Source Distribution

gooddata_flexconnect-1.30.1.dev2.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

gooddata_flexconnect-1.30.1.dev2-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file gooddata_flexconnect-1.30.1.dev2.tar.gz.

File metadata

File hashes

Hashes for gooddata_flexconnect-1.30.1.dev2.tar.gz
Algorithm Hash digest
SHA256 04ad5166e8c07b31474a0e45f9a8461d0924ad89bb139ef937eb61af6eeb67fd
MD5 5bf31b138945e3c4fc4ab2941b1ef953
BLAKE2b-256 3f5b2b3a1e1b57b79f4de2a398466f60788add33ddd42b757dd4df79bfec2222

See more details on using hashes here.

File details

Details for the file gooddata_flexconnect-1.30.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for gooddata_flexconnect-1.30.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 336f09374ddbb7ae1d366d29d8ab7b88c5e1c56a29f8456ee6f30dcd8abb2750
MD5 c477b8290d3a56485176e0d1cc56a18c
BLAKE2b-256 5e5c0a12d86651da0ccee368840b12cbbc502dbb949ea5d7750b4c3a2eb5ec39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page