manpki.server

Functions

daemon_starter()
default_page()
envready()
error_response()
generate_sha256_string()
get_api_discovery()
get_content_render()
get_current_user_role()
get_json_lang(lang)
get_locales(lang)
get_path_lang(lang)
get_path_render()
get_render()
get_run_directory([paths]) Generates (yields) the available run directory in the correct order.
info()
isfloat(s)
isint(s)
jsonify(*args, **kwargs) This function wraps dumps() to add a few enhancements that make life easier.
lang_is_defined(lang)
load_api_modules()
login()
logout()
method_not_allowed(error)
page_internal_server_error(error)
page_not_found(error)
ping()
render_is_defined()
requires_roles(*roles)
start()
time(() -> floating point number) Return the current time in seconds since the Epoch.
unhandled_exception(e)
verify_password(username, password)
verify_token(token)
where(key)
wraps(wrapped[, assigned, updated]) Decorator factory to apply update_wrapper() to a wrapper function

Classes

API
APIMethodArg(name, vtype, mandatory)
APIRoute([url, command, endpoint])
CAParameter(*args, **kwargs)
CertParameter(*args, **kwargs)
CrlParameter(*args, **kwargs)
Database([db]) A class acts as a wrapper of tinydb.TinyDB with additional features.
ExtendedKeyUsage(*args, **kwargs)
ExtensionModel(*args, **kwargs)
Flask(import_name[, static_path, ...]) The flask object implements a WSGI application and acts as the central object.
HTTPBasicAuth([scheme, realm])
HTTPTokenAuth([scheme, realm])
KeyUsage(*args, **kwargs)
LdapParameter(*args, **kwargs)
MailParameter(*args, **kwargs)
ManPKIFlaskResponse([response, status, ...])
MultiAuth(main_auth, *args)
OcspParameter(*args, **kwargs)
ParamModel(*args, **kwargs)
Profile(*args, **kwargs)
Response([response, status, headers, ...]) The response object that is used by default in Flask.
Roles(**kwargs)
SSL
ServerParameter(*args, **kwargs)
TinyJsonModel([eid])
User(username)
UserDB(*args, **kwargs)
WSGIServer(listener[, application, backlog, ...]) A WSGI server based on StreamServer that supports HTTPS.
WebSSL
datetime(year, month, day[, hour[, minute[, ...) The year, month and day arguments are required.
timedelta Difference between two datetime values.