Server¶
taco.server¶
- class taco.server.TacoServer¶
Taco server class.
This class implements a Taco server for Python.
- run()¶
Main server function.
Enters a message handling loop. The loop exits on failure to read another message.
- call_class_method(message)¶
Call the class method specified in the message.
The context, if present in the message, is ignored.
- call_function(message)¶
Call the function specified in the message.
The context, if present in the message, is ignored.
- call_method(message)¶
Call an object method.
Works similarly to call_function.
- construct_object(message)¶
Call an object constructor.
Works similarly to call_function.
- destroy_object(message)¶
Remove an object from the objects dictionary.
- get_attribute(message)¶
Get an attribute value from an object.
- get_value(message)¶
Get the value of a variable.
If the variable name contains ”.”-separated components, then it is looked up using the _find_attr function.
- import_module(message)¶
Import a module or names from a module.
Without arguments, the module is imported and the top level package name is inserted into the “ns” dictionary.
With “args” specified, it is used as a list of names to import from the module, and those names are inserted into the “ns” dictionary.
Currently any “kwargs” in the message are ignored.
- set_attribute(message)¶
Set an attribute value of an object.
- set_value(message)¶
Set the value of a variable.
If the variable name contains ”.”-separated components, then it is looked up using the _find_attr function.