fsl.utils.meta
¶
This module provides the Meta
class.
-
class
fsl.utils.meta.
Meta
¶ Bases:
object
The
Meta
class is intended to be used as a mixin for other classes. It is simply a wrapper for a dictionary of key-value pairs.It has a handful of methods allowing you to add and access additional metadata associated with an object.
metaKeys
Returns the keys contained in the metadata dictionary ( dict.keys
).metaValues
Returns the values contained in the metadata dictionary ( dict.values
).metaItems
Returns the items contained in the metadata dictionary ( dict.items
).getMeta
Returns the metadata value with the specified key ( dict.get
).setMeta
Add some metadata with the specified key ( dict.__setitem__
).-
metaKeys
()¶ Returns the keys contained in the metadata dictionary (
dict.keys
).
-
metaValues
()¶ Returns the values contained in the metadata dictionary (
dict.values
).
-
metaItems
()¶ Returns the items contained in the metadata dictionary (
dict.items
).
-
getMeta
(*args, **kwargs)¶ Returns the metadata value with the specified key (
dict.get
).
-
setMeta
(*args, **kwargs)¶ Add some metadata with the specified key (
dict.__setitem__
).
-