web Package

web Package

api Module

class fastr.web.api.NetworkApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_network'
get(id_)[source]

Get a Network json description from the server

mediatypes(resource_cls)
methods = ['GET']
class fastr.web.api.NetworkListApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_networks'
get(*args, **kwargs)[source]

Get a list of the networks

mediatypes(resource_cls)
methods = ['GET']
class fastr.web.api.ObjectUrl(object_classs, **kwargs)[source]

Bases: flask_restplus.fields.Raw

__init__(object_classs, **kwargs)[source]
__module__ = 'fastr.web.api'
__schema_type__ = 'string'
__slotnames__ = []
format(value)[source]
class fastr.web.api.Run(id_, network, source_data, sink_data)[source]

Bases: object

__dict__ = dict_proxy({'status': <function status>, '__module__': 'fastr.web.api', 'abort': <function abort>, '__dict__': <attribute '__dict__' of 'Run' objects>, '__weakref__': <attribute '__weakref__' of 'Run' objects>, '__doc__': None, '__init__': <function __init__>, 'run_network': <function run_network>})
__init__(id_, network, source_data, sink_data)[source]
__module__ = 'fastr.web.api'
__weakref__

list of weak references to the object (if defined)

abort()[source]
run_network(network, source_data, sink_data, abort_lock)[source]
status()[source]
class fastr.web.api.RunApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

Run API documentation

__module__ = 'fastr.web.api'
delete(id_)[source]

Abort a Network run and stop all associated execution

endpoint = 'api_run'
get(*args, **kwargs)[source]

Get information about a Network run

mediatypes(resource_cls)
methods = ['DELETE', 'GET']
class fastr.web.api.RunListApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_runs'
get(*args, **kwargs)[source]

Get a list of all Network runs on the server

mediatypes(resource_cls)
methods = ['GET', 'POST']
post()[source]

Create a new Network run and start execution

request_parser = <flask_restplus.reqparse.RequestParser object>
class fastr.web.api.StatusApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_status'
get(id_)[source]

Get the status of a Network Run on the server

mediatypes(resource_cls)
methods = ['GET']
class fastr.web.api.SubUrl(object_classs, subfield, **kwargs)[source]

Bases: flask_restplus.fields.Raw

__init__(object_classs, subfield, **kwargs)[source]
__module__ = 'fastr.web.api'
__schema_type__ = 'string'
format(value)[source]
class fastr.web.api.ToolApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_version_tool'
get(id_, version=None)[source]

Get a Tool json description from the server

mediatypes(resource_cls)
methods = ['GET']
class fastr.web.api.ToolListApi(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

__module__ = 'fastr.web.api'
endpoint = 'api_tools'
get(*args, **kwargs)[source]

Get a list of all Tools known to the server

mediatypes(resource_cls)
methods = ['GET']
fastr.web.api.network_lock_thread(lock, network)[source]
fastr.web.api.network_runner(network, source_data, sink_data, chuck_status, job_status, job_results, abort_lock)[source]
fastr.web.api.update_job_result(job, job_status, job_results)[source]
fastr.web.api.update_status(job, job_status)[source]

run Module

fastr.web.run.main()[source]
fastr.web.run.runapp(debug=False)[source]

views Module

fastr.web.views.doc()[source]
fastr.web.views.index()[source]
fastr.web.views.network(name=None)[source]
fastr.web.views.networks()[source]
fastr.web.views.prov()[source]
fastr.web.views.shutdown()[source]
fastr.web.views.shutdown_server()[source]
fastr.web.views.tool(toolname=None, version=None)[source]
fastr.web.views.websocket_client()[source]