libbe.command.serve_commands

Define the ServeCommands serving BE Commands over HTTP.

See Also

be-libbe.command.base.Command._run_remote() : the associated client

class libbe.command.serve_commands.ServeCommands(*args, **kwargs)

Serve commands over HTTP.

This allows you to run local be commands interfacing with remote data, transmitting command requests over the network.

Command wrapper around ServerApp.

Methods

cleanup()
complete([argument, fragment])
help(*args)
run([options, args])
usage()
name = 'serve-commands'
libbe.command.serve_commands.Serve_commands

alias of ServeCommands

class libbe.command.serve_commands.ServerApp(storage=None, notify=False, **kwargs)

WSGI server for a BE Command invocation over HTTP.

RESTful_ WSGI request handler for serving the libbe.command.base.Command._run_remote backend with GET, POST, and HEAD commands.

This serves all commands from a single, persistant storage instance, usually a VCS-based repository located on the local machine.

Methods

check_login(environ)
data_get_boolean(data, key[, default, source])
data_get_id(data[, key, default, source])
data_get_string(data, key[, default, source])
error(environ, start_response, error, message) Make it easy to call start_response for errors.
is_head(environ)
log_request(environ[, status, bytes])
ok_response(environ, start_response, content)
post_data(environ)
query_data(environ)
run(environ, start_response)
check_login(environ)
run(environ, start_response)
server_version = 'BE-command-server/1.0.0'

Table Of Contents

This Page