_images/botd2line.png

bot.obj

object library

exceptions

ENOCLASS
ENOFILENAME
ENOTYPE

classes

O()
Obj(*args, **kwargs)
Object(*args, **kwargs)

functions

cdir(path)
edit(o, setter[, skip])
fmt(o[, keys, empty, skip])
get(o, key[, default])
getname(o)
gettype(o)
items(o)
keys(o)
load(o, opath)
merge(o, d)
overlay(o, d[, keys, skip])
register(o, key, value)
save(o[, tab])
search(o, s)
set(o, key, value)
spl(txt)
update(o, data)
values(o)

source

exception ENOCLASS[source]

Bases: Exception

exception ENOFILENAME[source]

Bases: Exception

exception ENOTYPE[source]

Bases: Exception

class O[source]

Bases: object

class Obj(*args, **kwargs)[source]

Bases: bot.obj.O

get(key, default=None)[source]
items()[source]
keys()[source]
merge(d)[source]
register(key, value)[source]
set(key, value)[source]
update(data)[source]
values()[source]
class Object(*args, **kwargs)[source]

Bases: bot.obj.Obj

json()[source]
load(opath)[source]
save(tab=False)[source]
cdir(path)[source]
edit(o, setter, skip=False)[source]
fmt(o, keys=None, empty=True, skip=None)[source]
get(o, key, default=None)[source]
getname(o)[source]
gettype(o)[source]
items(o)[source]
keys(o)[source]
load(o, opath)[source]
merge(o, d)[source]
overlay(o, d, keys=None, skip=None)[source]
register(o, key, value)[source]
save(o, tab=False)[source]
search(o, s)[source]
set(o, key, value)[source]
spl(txt)[source]
update(o, data)[source]
values(o)[source]