AFL.automation.APIServer.APIServer#
Functions
|
Create a new access token. |
|
Create a new refresh token. |
|
In a protected endpoint, this will return the identity of the JWT that is accessing the endpoint. |
|
Serialize the given arguments as JSON, and return a |
|
A decorator to protect a Flask endpoint with JSON Web Tokens. |
|
|
|
Render a template by name with the given context. |
|
Send the contents of a file to the client. |
|
Modifiy a Flask Response to set a cookie containing the access JWT. |
|
Modifiy a Flask Response to set a cookie containing the refresh JWT. |
|
Convert a string representation of truth to true (1) or false (0). |
|
Modifiy a Flask Response to delete the cookies containing access or refresh JWTs. |
Classes
|
|
|
Initializes Cross Origin Resource sharing for the application. |
|
A handler class which writes formatted logging records to disk files. |
|
The flask object implements a WSGI application and acts as the central object. |
|
|
|
An object used to hold JWT settings and callback functions for the Flask-JWT-Extended extension. |
|
|
|
Thread-safe, mutable queue |
|
|
|
A handler class which sends an SMTP email for each logging event. |
|
Service information. |
|
Implementation of Zeroconf Multicast DNS Service Discovery |
- class AFL.automation.APIServer.APIServer.APIServer(name, data=None, experiment='Development', contact='tbm@nist.gov', index_template='index.html', new_index_template='index-new.html', plot_template='simple-bokeh.html')[source]#
- __init__(name, data=None, experiment='Development', contact='tbm@nist.gov', index_template='index.html', new_index_template='index-new.html', plot_template='simple-bokeh.html')[source]#
- get_quickbar()[source]#
Return the functions, params, and defaults to be shown in this server’s quickbar
- render_unqueued(func, kwargs_add, **kwargs)[source]#
Convert an unqueued return item into web-suitable output
- deposit_obj()[source]#
Store an object named obj in the driver’s dropbox If a uuid is provided, the object will be stored with that uuid Otherwise, a new uuid will be generated. In either case, the uuid will be returned to the client.