AttributeStorageLite — Item key/value storage

AttributeStorage with a SQLite backend.

Class Reference

class pyircbot.modules.AttributeStorageLite.AttributeStorageLite(bot, moduleName)[source]

Bases: pyircbot.modulebase.ModuleBase

get(item, key)[source]
getItem(name)[source]

Get all values for a item

Parameters:name (str) – the item
Returns:dict – the item’s values expressed as a dict
getKey(item, key)[source]

Get the value of an key on an item

Parameters:
  • item (str) – the item to fetch a key from
  • key (str) – they key who’s value to return
Returns:

str – the item from the database or None

set(item, key, value)[source]
setKey(item, key, value)[source]

Set the key on an item

Parameters:
  • item (str) – the item name to set the key on
  • key (tuple) – the key to set
  • value (str) – the value to set