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
Metadata
Release files for vdk-plugin-control-cli 0.1.715017056
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vdk-plugin-control-cli-0.1.715017056.tar.gz | 8.9 kB | Without provenance | Details for vdk-plugin-control-cli-0.1.715017056.tar.gz |
Release files / vdk-plugin-control-cli-0.1.715017056.tar.gz
| Download URL | vdk-plugin-control-cli-0.1.715017056.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da9fe2200be3ecbc4f81cd41a197ca9cea0afec89f549024151bd05819217113
|
|
BLAKE2b-256 checksum How to use checksums |
934d3de6d7001a796d98f5c42314b985f8fdc4afc74cac06bfd96135b52135a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Security for vdk-plugin-control-cli 0.1.715017056
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.