Skip to main content

Versatile Data Kit SDK plugin exposing CLI commands for managing the lifecycle of a Data Jobs.

Project description

This plugin allows vdk-core to access vdk-control-cli functionality.

Upon installing it enhances vdk with CLI commands for data job lifecycle management available from vdk-control-cli package

It will also install properties plugin and switch Properties in vdk to use Control Service Properties API. By default no Properties backend is used otherwise.

Usage

pip install vdk-plugin-control-cli

New CLI commands

Then on the vdk CLI you should be able to see the new commands. Run

vdk --help

and you will see extra commands being added:

Commands:
  ...
  login                  Authentication against the Control Service.
  logout                 Logout the user from the Data Jobs Service by...
  create                 Creates a new data job in cloud and locally.
  delete                 Deletes a data job from the cloud.
  deploy                 Deploys a data job.
  ...

And you can use them from the same CLI vdk

New properties backend client registered

You can now access remote properties from Control Service Properties API Store state, configuration or secrets there using CLI or Python JobInput API

For example, let's store some api-uri

vdk properties --set 'api-uri' 'http://cool.cool.api.com'

and then we can use it in our data job

def run(job_input: IJobInput):
    uri = job_input.get_property('api-uri')
    print(requests.get(uri))

Build

The easiest way is to use the ../build-plugin.sh helper script

../build-plugin.sh

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

vdk-plugin-control-cli-0.1.475789456.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file vdk-plugin-control-cli-0.1.475789456.tar.gz.

File metadata

  • Download URL: vdk-plugin-control-cli-0.1.475789456.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for vdk-plugin-control-cli-0.1.475789456.tar.gz
Algorithm Hash digest
SHA256 57c9e33239e16b6f87d64d31bed1ebaffefabee347cf7cf4b9a862fc17e20981
MD5 c54659b619818f1947fa28b1de877f4b
BLAKE2b-256 f429ab6091fba3160cb5819599383c265f216652640a459323ed6c3959e5bd76

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