Mapper
A data mapper.
Usage
Mapper()Parameters
mapping: dict-
A dictionary mapping keys to values.
Methods
| Name | Description |
|---|---|
| apply() | Look up a key in the mapping. |
| keys() | Get all keys. |
apply()
Look up a key in the mapping.
Usage
apply(key)Parameters
key: str-
The key to look up.
Returns
object-
The mapped value.
keys()
Get all keys.
Usage
keys()Returns
list-
All mapping keys.