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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file vdk-properties-fs-0.0.715017056.tar.gz.
File metadata
- Download URL: vdk-properties-fs-0.0.715017056.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46da4316a9acf3b083fe5034aa4a2581ea2fe74a26deee802e875dbc5b2103c4
|
|
| MD5 |
767bfb03342b8adc5cfc8d0f5d96de41
|
|
| BLAKE2b-256 |
ba8d66bd225d08c7f523b7b040c800346dd9eac330f504d02b232d97ca62ef1c
|