Skip to main content

Versatile Data Kit SDK plugin provides support for Properties API client that uses local FS storage.

Project description

monthly download count for vdk-properties-fs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vdk-properties-fs-0.0.1190994517.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file vdk-properties-fs-0.0.1190994517.tar.gz.

File metadata

File hashes

Hashes for vdk-properties-fs-0.0.1190994517.tar.gz
Algorithm Hash digest
SHA256 0d827f55a9a5af66d0e06c74f0e1a70d28d8c96bf18383651ed1d603cb342576
MD5 8a58a2b458f1d232a3b55981c8a3ac8b
BLAKE2b-256 a966c4726653ca4bd7c66699556e24f9e3a46fd86afd74acbe5a4714aa2c57c2

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