Project.put#
- Project.put(key, value, *, note=None, display_as=None)[source]#
Add a key-value pair to the Project.
If an item with the same key already exists, its value is replaced by the new one.
- Parameters:
- keystr
The key to associate with
value
in the Project.- valueAny
The value to associate with
key
in the Project.- notestr, optional
A note to attach with the item.
- display_as{“HTML”, “MARKDOWN”, “SVG”}, optional
Used in combination with a string value, it customizes the way the value is displayed in the interface.
- Raises:
- TypeError
If the combination of parameters are not valid.
- NotImplementedError
If the value type is not supported.