Module Expr Str ImportFrom alias alias alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Dict Break orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Yield Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq Call NameLoad Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr orelse If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Generic DB Component

Provide a simple key value store.

The Backend data store can be changed out via a driver intermediate.
Must support the following methods, object is a dict or list or mixture

[key(plain text), payload] should be the return value for operations that
return objects

Driver Methods:

getObject(key=, bucket=)
setObject(object, key=, bucket=)
updateObject(object, key=, bucket=)
updateObjectKey(bucket=, oldkey=, newkey=)
updateObjectBucket(key=, oldbucket=, newbucket=)
getAllObjects(bucket=)  (iter)
deleteObject(key=, bucket=) #One at a time for safety
 __future__ absolute_import division print_function unicode_literals N/A hashlib N/A json N/A inspect importlib import_module components component_class N/A CLASS_MARKER _PYAIB_DB_DRIVER sha256 N/A N/A msg N/A N/A N/A  return the hex digest for a givent msg  N/A N/A N/A N/A N/A hashlib sha256 msg hexdigest N/A N/A hash sha256 jsonify N/A N/A thing N/A N/A N/A N/A N/A json dumps thing sort_keys True separators N/A , : N/A dejsonify N/A N/A jsonstr N/A N/A N/A N/A N/A json loads jsonstr N/A db_driver N/A N/A cls N/A N/A N/A Mark a class def as a db driver N/A N/A setattr cls CLASS_MARKER True N/A cls N/A ObjectStore N/A object N/A N/A  Generic Key Value Store  N/A _driver None __init__ N/A N/A self irc_c config N/A N/A N/A N/A self config config N/A N/A N/A self _load_driver N/A N/A N/A self _driver N/A N/A N/A RuntimeError Can not load DB component driver not loaded N/A _load_driver N/A N/A self N/A N/A N/A  Loads the configured driver config.db.backend  N/A name N/A N/A self config backend N/A N/A name N/A N/A N/A RuntimeError config item db.backend not set N/A N/A . name N/A N/A importname name N/A N/A importname N/A pyaib.dbd.%s name N/A basename N/A N/A N/A N/A name split . pop N/A driver_ns N/A import_module importname N/A N/A name cls N/A N/A inspect getmembers driver_ns N/A inspect isclass N/A N/A N/A hasattr cls CLASS_MARKER N/A N/A N/A self _driver N/A cls N/A N/A N/A N/A self config driver setdefault basename N/A N/A N/A N/A N/A RuntimeError N/A Unable to instance db driver %r name N/A get N/A N/A self bucket key N/A None N/A N/A Get a Bucket or if key is provided get a Item from the db N/A N/A key None N/A N/A N/A Bucket self bucket N/A N/A key payload N/A N/A N/A self _driver getObject key bucket N/A N/A Item N/A self _driver bucket key payload N/A getAll N/A N/A self bucket N/A N/A N/A Get all items in the bucket ITERATOR N/A N/A key payload N/A N/A N/A self _driver getAllObjects bucket N/A N/A N/A N/A Item N/A self _driver bucket key payload N/A set N/A N/A self bucket key obj N/A N/A N/A Store an object in the db by bucket and key, return an Item N/A N/A N/A N/A self _driver setObject obj key bucket N/A N/A Item N/A self _driver bucket key obj N/A delete N/A N/A self bucket key N/A N/A N/A Delete an object in the store N/A N/A N/A N/A self _driver deleteObject key bucket N/A N/A N/A component_class db Item N/A object N/A N/A  Represents a item stored in the key value store, with easy methods  __init__ N/A N/A self driver bucket key payload N/A N/A N/A N/A self _driver driver N/A N/A self _meta N/A bucket key objectHash bucket key N/A hash N/A jsonify payload N/A N/A self bucket bucket N/A N/A self key key N/A N/A self value payload N/A reload N/A N/A self N/A N/A N/A N/A N/A self key N/A self value N/A N/A N/A self _driver getObject N/A N/A self _meta N/A key N/A N/A self _meta N/A bucket N/A N/A self bucket N/A N/A self _meta N/A bucket N/A delete N/A N/A self N/A N/A N/A N/A N/A N/A self _driver deleteObject N/A self key N/A self bucket N/A commit N/A N/A self N/A N/A N/A N/A N/A hash N/A jsonify N/A self value N/A N/A self _meta N/A objectHash N/A N/A N/A N/A self value N/A N/A N/A N/A self delete N/A N/A N/A N/A N/A self _driver updateObject N/A self value N/A N/A self _meta N/A key N/A N/A self _meta N/A bucket N/A N/A N/A N/A N/A self _meta N/A bucket N/A self bucket N/A N/A N/A N/A self bucket N/A N/A N/A N/A self delete N/A N/A N/A N/A N/A self _driver updateObjectBucket N/A N/A self _meta N/A key N/A N/A self _meta N/A bucket N/A self bucket N/A N/A N/A N/A N/A self _meta N/A key N/A self key N/A N/A N/A N/A self key N/A N/A N/A N/A self delete N/A N/A N/A N/A N/A self _driver updateObjectKey N/A N/A self _meta N/A bucket N/A N/A self _meta N/A key N/A self key N/A N/A Bucket N/A object N/A N/A  An class tied to a bucket  __init__ N/A N/A self db bucket N/A N/A N/A N/A self _db db N/A N/A self _bucket bucket N/A __repr__ N/A N/A self N/A N/A N/A N/A Bucket(%r) N/A self _bucket N/A get N/A N/A self key N/A N/A N/A N/A N/A N/A self _db get N/A self _bucket key N/A getAll N/A N/A self N/A N/A N/A N/A N/A N/A self _db getAll N/A self _bucket N/A set N/A N/A self key obj N/A N/A N/A N/A N/A N/A self _db set N/A self _bucket key obj N/A delete N/A N/A self key N/A N/A N/A N/A N/A N/A self _db delete N/A self _bucket key N/A N/A