Handlers
The following is a list of all dedicated handlers for the Saucenao API.
A handler provides extra capabilities for retrieving source information.
The handlers are not considered a part of the public API and as a result do not follow semantic versioning. They are documented here for development purposes.
Danbooru
-
class
retaggr.engines.saucenao.handlers.
DanbooruHandler
[source]
-
engine_id
= 9
-
get_source_data
(data)[source]
Extract the source from the supplied data.
-
get_tag_data
(data)[source]
Get all the tags matching the supplied data.
-
source_capable
= True
-
tag_capable
= True
Gelbooru
-
class
retaggr.engines.saucenao.handlers.
GelbooruHandler
[source]
-
engine_id
= 25
-
get_source_data
(data)[source]
Extract the source from the supplied data.
-
get_tag_data
(data)[source]
Get all the tags matching the supplied data.
-
source_capable
= True
-
tag_capable
= True
e621
-
class
retaggr.engines.saucenao.handlers.
E621Handler
(username, app_name, version)[source]
-
engine_id
= 29
-
get_source_data
(data)[source]
Extract the source from the supplied data.
-
get_tag_data
(data)[source]
Get all the tags matching the supplied data.
-
source_capable
= True
-
tag_capable
= True
Konachan
-
class
retaggr.engines.saucenao.handlers.
KonachanHandler
[source]
-
engine_id
= 26
-
get_tag_data
(data)[source]
Get all the tags matching the supplied data.
-
source_capable
= False
-
tag_capable
= True
Yandere
-
class
retaggr.engines.saucenao.handlers.
YandereHandler
[source]
-
engine_id
= 12
-
get_tag_data
(data)[source]
Get all the tags matching the supplied data.
-
source_capable
= False
-
tag_capable
= True
Base
-
class
retaggr.engines.saucenao.handlers.base.
SauceNaoHandler
[source]
Base class to handle SauceNao engine results.
-
engine_id
= None
The engine ID. Engine IDs can be located on https://saucenao.com/status.html.
-
get_source_data
(data) → Set[str][source]
Extract the source from the supplied data.
-
get_tag_data
(data) → Set[str][source]
Get all the tags matching the supplied data.
-
source_capable
= False
This determines if the Handler has the ability to retrieve additional source data.
If this is false, get_source_data()
may not necessarily exist.
-
tag_capable
= False
This determines if the Handler has the ability to retrieve tags.
If this is false, get_tag_data()
may not necessarily exist.