Skip to content

unaiverse.utils

General utilities of the SDK that do not belong to agents, worlds or networking. Most programs touch only the logger and import it with from unaiverse.utils.logger import log. The other modules serve the node and the agent internally.

utils

Importing the package imports misc, sandbox and os_fd_capture and exposes FdCapture as unaiverse.utils.FdCapture. The logger is not imported by the package itself. Every module of the SDK that logs imports it directly.

Module Content
logger The shared logger log, its channels and its sinks.
misc Identity and keys, the addresses of running nodes, the packing and loading of the code of a world, policy filters that delay actions and small terminal utilities.
os_fd_capture FdCapture redirects the standard output or error of native code to a callback.
sandbox Running a script inside an isolated container.