Skip to main content

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

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.664990419.tar.gz (8.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for vdk-plugin-control-cli-0.1.664990419.tar.gz
Algorithm Hash digest
SHA256 dd460e9f6584fe376ef995acf89b24b5f480ee43905821452581eb3cf0d3bf83
MD5 469366a2e05fca9d04c1af2f980907f6
BLAKE2b-256 712411672215e1a74e9da130f6e3e17a11422a64916e5a6bac02aaa4e7ad3558

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1431637373

1 file

0.1.1220499344

1 file

0.1.1213063525

1 file

0.1.1190994517

1 file

0.1.1184833162

1 file

0.1.948436673

1 file

0.1.928743296

1 file

0.1.886059298

1 file

0.1.868861548

1 file

0.1.824443273

1 file

0.1.715017056

1 file

This release

0.1.664990419 This release

1 file

0.1.527956211

1 file

0.1.477708478

1 file

0.1.475789456

1 file

0.1.473460496

1 file

0.1.417315215

1 file

0.1.415625538

1 file

0.1.414800992

1 file

0.1.391026511

1 file

0.1.390111011

1 file

0.1.388215666

1 file

0.1.387484347

1 file

0.1.384835837

1 file

0.1.384270400

1 file

0.1.384200265

1 file

0.1.384095295

1 file

0.1.382586302

1 file

0.1.382575652

1 file

0.1.377908503

1 file

0.1.371836734

1 file

0.1.369062590

1 file

0.1.363986988

1 file

0.1.353684692

1 file

0.1.352665786

1 file

0.1.352155979

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page