Python - kv.get()

Get a value from a key value store.

from nitric.resources import kv
from nitric.application import Nitric

profiles = kv('profiles').allow('get')

profile = await profiles.get('profile-1a2b3c')

Nitric.run()

Parameters

  • Name
    key
    Required
    Required
    Type
    string
    Description

    The key that references the key value pair that should be retrieved.

Examples

Get a key value pair

from nitric.resources import kv
from nitric.application import Nitric

profiles = kv('profiles').allow('get')

profile = await profiles.get('profile-1a2b3c')

Nitric.run()