write_stamp(), read_stamp()

clink.com.label.write_stamp(target, key, value)[source]

Write metadata into target

Parameters:
clink.com.label.read_stamp(target, key)[source]

Read metadata from target

Parameters:

Example

com_rw_stamp.py
from clink.com import write_stamp, read_stamp


class BrokenCar():
    def boot(self):
        print('Oop!, something went wrong.')


write_stamp(BrokenCar, 'note', 'This cars can not boot. It must be fixs')
note = read_stamp(BrokenCar, 'note')


print('class BrokenCar has a note:', note)

Testing

$ python com_rw_stamp.py
class BrokenCar has a note: This cars can not boot. It must be fixs