Skip to main content

Versatile Data Kit SDK Core

Project description

Versatile Data Kit SDK Core

monthly download count for vdk-core

To build or contribute, see CONTRIBUTING.md.

Versatile Data Kit enables data engineers, data scientists and data analysts to develop, deploy, run, and manage data processing workloads (called "Data Job"). A "Data Job" enables Data Engineers to implement automated pull ingestion (E in ELT) and batch data transformation into a database (T in ELT).

Build

Make sure you have python3 installed. It's strongly recommended to use a virtual environment, and also to use a python installer like pyenv or conda. We recommend pyenv.

CICD is managed through gitlab-ci.yml. You can see how to build, run tests, deploy there best. All related CICD scripts are in /cicd/ folder.

Installation

All Versatile Data Kit SDK Core releases can be found in PyPI.

Install Versatile Data Kit SDK Core with:

pip install vdk-core

This will install console application called vdk

Then run help to see what it can do:

vdk --help

Plugins

Plugins are a powerful way of extending or adapting Versatile Data Kit for all kinds of use-cases. For more information see Plugins doc.

A note on configs and secrets

Secrets also double as config keys.. At the end of the initialize_job hook, the secrets provider is called and all secrets keys are fetched. Any configs that match a secrets key have their values overridden. However, if a plugin caches some config values in the initialize_job hook and re-uses them later, those values will not be overridden by secrets.

Example

This will not work

vdk secrets --set-prompt mytoken
    @hookimpl
    def initialize_job(self, context: JobContext) -> None:
        token = context.core_context.configuration.get_value("mytoken") # will be None if not set in config.ini

        if token:
            myapi.login(token)

        # secrets override configs after initialize_job but before run_job

Plugins should do this instead

    @hookimpl(hookwrapper=True)
    def run_job(self, context: JobContext) -> Optional[ExecutionResult]:
        # config is already overridden by secrets
        token = context.core_context.configuration.get_value("mytoken")

        if token:
            myapi.login(token)

This is a limitation on the current implementation, which might change after https://github.com/vmware/versatile-data-kit/issues/3210

Public interfaces

Any backwards compatibility guarantees apply only to public interfaces. Public interfaces are modules and packages defined or imported in vdk.api.*. unless the documentation explicitly declares them to be provisional or internal interfaces. Anything else is considered internal. All public interfaces (classes or methods) must have documentation.

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 Distribution

vdk_core-0.3.1254809153.tar.gz (116.0 kB view details)

Uploaded Source

File details

Details for the file vdk_core-0.3.1254809153.tar.gz.

File metadata

  • Download URL: vdk_core-0.3.1254809153.tar.gz
  • Upload date:
  • Size: 116.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for vdk_core-0.3.1254809153.tar.gz
Algorithm Hash digest
SHA256 e40c1b7591b80baf2e9ed0473903eef3e8107fdb9a48d4294ccb0da602bdf0a3
MD5 a0e5770b19ecbda8ef096d34083426a9
BLAKE2b-256 2835f7ccce2826a7cb2d6b7c07b813a4c58a7856dd17ab8b5ff2927def8eee0f

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