Versatile Data Kit SDK plugin provides support for Properties API client that uses local FS storage.
Project description
This plugin allows vdk-core to read/write properties on the local FS. Mainly for development purposes, to simplify a use-case with local Properties API usage, that would otherwise require a Control Service instance prerequisite. For example, to quickly demo a data job that uses a secret, so that secret is quickly stored on the presenter's local FS.
Usage
Run
pip install vdk-properties-fs
After this, data jobs will be able to read and write properties stored on the local file system.
For example
def run(job_input: IJobInput):
my_props = {"key": "value"}
job_input.set_all_properties(my_props)
assert job_input.get_all_properties() == my_props
assert job_input.get_property("key") == "value"
Configuration
To enable the plugin, set "PROPERTIES_DEFAULT_TYPE" to "fs-properties-client". Run vdk config-help - search for those prefixed with "FS_PROPERTIES_" to see what configuration options are available.
Testing
Testing this plugin locally requires installing the dependencies listed in vdk-plugins/vdk-properties-fs/requirements.txt
Run
pip install -r requirements.txt
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
Hashes for vdk-properties-fs-0.0.651770458.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728d6111812a2b65bc74b72a369a5892991b5da8511a77246ec232d524923b0a |
|
MD5 | 4fc8c0c121e51f6781cc7c3ac7af0534 |
|
BLAKE2b-256 | 57f08d7a653d3633ec0ac2c86edd1de98b3ef971b202416308748f02e64a40d1 |