woohoo_pdns_gui package

Submodules

woohoo_pdns_gui.app module

woohoo_pdns_gui.config module

class woohoo_pdns_gui.config.DefaultSettings[source]

Bases: object

The default configuration of the GUI just demonstrates the available options.

API_ENTRYPOINT = 'http://localhost:5000/api'

The URL (entry point) to call for queries.

API_KEY = 'MsfPfDqYMQGDc4nVcGTMS8UA'

The API key used to access the pDNS database.

SECRET_KEY = 'snakeoil'

Flask uses a secret key to encrypt things that sould be tamper proof (for example the Session object).

TIMEZONE = 'UTC'

A timezone is required to localise the display of the first seen/last seen timestamps

WOOHOO_APPLICATION_ROOT = ''

Set this to the subpath When the pDNS GUI is not running in the root of a vHost.

__dict__ = mappingproxy({'__module__': 'woohoo_pdns_gui.config', '__doc__': 'The default configuration of the GUI just demonstrates the available options.', 'TIMEZONE': 'UTC', 'WOOHOO_APPLICATION_ROOT': '', 'SECRET_KEY': 'snakeoil', 'API_KEY': 'MsfPfDqYMQGDc4nVcGTMS8UA', 'API_ENTRYPOINT': 'http://localhost:5000/api', '__dict__': <attribute '__dict__' of 'DefaultSettings' objects>, '__weakref__': <attribute '__weakref__' of 'DefaultSettings' objects>})
__module__ = 'woohoo_pdns_gui.config'
__weakref__

list of weak references to the object (if defined)

woohoo_pdns_gui.meta module

class woohoo_pdns_gui.meta.LookupDict(name=None)[source]

Bases: dict

Dictionary lookup object.

TODO: understand this… https://github.com/kennethreitz/requests/blob/master/requests/structures.py

__dict__ = mappingproxy({'__module__': 'woohoo_pdns_gui.meta', '__doc__': '\n Dictionary lookup object.\n\n TODO: understand this...\n https://github.com/kennethreitz/requests/blob/master/requests/structures.py\n ', '__init__': <function LookupDict.__init__>, '__repr__': <function LookupDict.__repr__>, '__getitem__': <function LookupDict.__getitem__>, 'get': <function LookupDict.get>, '__dict__': <attribute '__dict__' of 'LookupDict' objects>, '__weakref__': <attribute '__weakref__' of 'LookupDict' objects>})
__getitem__(key)[source]

x.__getitem__(y) <==> x[y]

__init__(name=None)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'woohoo_pdns_gui.meta'
__repr__()[source]

Return repr(self).

__weakref__

list of weak references to the object (if defined)

get(key, default=None)[source]

Return the value for key if key is in the dictionary, else default.

woohoo_pdns_gui.meta._init()[source]

Module contents

woohoo_pdns_gui.create_app(test_config=None)[source]
woohoo_pdns_gui.no_app(environ, start_response)[source]