Submodules
MagicMock is a subclass of Mock with default implementations
of most of the magic methods. You can use MagicMock without having to
configure the magic methods yourself.
If you use the spec or spec_set arguments then only magic
methods that exist in the spec will be created.
Attributes and the return value of a MagicMock will also be MagicMocks.
-
class
yserver.config.
Config
[source]
Bases: dict
-
bool
(key)[source]
Convert string config to boolean
-
load_config
(filename, **options)[source]
Load config and default values and return config as a dict
-
class
yserver.core.
YggServer
(cfg='yserver.cfg')[source]
Bases: bottle.Bottle
-
auth
()[source]
-
debug
()[source]
This is performed only once, at instance init
-
dl_torrent
(idtorrent)[source]
-
exec_torrent
(cat, subcat, idtorrent)[source]
-
index
()[source]
-
index_reco
()[source]
-
mtemplate
(tpl, rtn=[], request=None, **kwargs)[source]
-
reco
()[source]
-
results_opts
(results, sort='')[source]
client side sort
-
run
(**kwargs)[source]
Calls run()
with the same parameters.
-
search_index
()[source]
-
send_torrent
(client, idtorrent)[source]
-
server_images
(filepath)[source]
-
server_static
(filepath)[source]
-
setup_client_cols
()[source]
-
setup_routes
()[source]
-
start
()[source]
-
stats
()[source]
-
top_day
(name)[source]