def get_entry_password(self, entry: Entry): """Return the password value of the supplied KeePass ``entry`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | ${value} = | `Get Entry Password` | ${entry} | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): return entry.password else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_password(self, entry: Entry, value): """Set the Password value of the supplied KeePass ``entry`` to the given ``value`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Password` | N3w Passw0rd | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.password = value else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_expires(self, entry: Entry, value: bool): """Sets expires value of the supplied KeePass ``entry`` to the given ``value``. Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Expires` | ${entry} | True | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.expires = value else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_username(self, entry: Entry, value): """Set the username value of the supplied KeePass ``entry`` to the given ``value`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Username` | New Username | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.username = value else: raise EntryInvalid('Invalid KeePass Entry.')
def remove_entry_custom_property(self, entry: Entry, key): """Removes a custom property matching the given key of the supplied KeePass ``entry`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Remove Entry Custom Property` | ${entry} | foobar_attribute | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.delete_custom_property(key) else: raise EntryInvalid('Invalid KeePass Entry.')
def get_entry_custom_properties(self, entry: Entry): """Return a dictonary with all custom properties of the supplied KeePass ``entry`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | ${value} = | `Get Entry Custom Properties` | ${entry} | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): return entry.custom_properties else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_custom_property(self, entry: Entry, key, value): """Sets property ``key`` of the supplied ``entry`` to ``value``. Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Custom Property` | new_field_name | new_field_value | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.set_custom_property(key, value) else: raise EntryInvalid('Invalid KeePass Entry.')
def get_entry_custom_property(self, entry: Entry, key): """Return the value from a custom property matching the given ``key`` of the supplied ``entry`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | ${value} = | `Get Entry Custom Property` | ${entry} | foobar_attribute | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): return entry.get_custom_property(key) else: raise EntryInvalid('Invalid KeePass Entry.')
def get_entry_tags(self, entry: Entry): """Return a list with tags of the supplied KeePass ``entry`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | ${value} = | `Get Entry Tags` | ${entry} | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): return entry.tags else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_icon(self, entry: Entry, value): """Set the icon value of the supplied KeePass ``entry`` to the given ``value`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Icon` | 20 | #Gear icon | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.icon = value else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_notes(self, entry: Entry, value): """Set the notes value of the supplied KeePass ``entry`` to the given ``value`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Notes` | New\\nnotes | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.notes = value else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_url(self, entry: Entry, value): """Set the URL value of the supplied KeePass ``entry`` to the given ``value`` Example: | ${entry} = | `Get Entries By Title` | root_entry | first=True | | `Set Entry Url` | https://keepass.info/ | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.url = value else: raise EntryInvalid('Invalid KeePass Entry.')
def set_entry_tags(self, entry: Entry, value): """Set the tags value of the supplied KeePass ``entry`` to the given ``value`` Example: | @{tags}= | Create List | tag1 | tag2 | | Set Entry Tags | ${entry} | ${tags} | | | Set Entry Tags | ${entry} | tag1;tag2 | | New in KeePassLibrary 0.3 """ if isinstance(entry, Entry): entry.tags = value else: raise EntryInvalid('Invalid KeePass Entry.')