opensistemas-hub/osbrain

View on GitHub
examples/hello_world.py

Summary

Maintainability
A
0 mins
Test Coverage
from osbrain import run_agent
from osbrain import run_nameserver

if __name__ == '__main__':

    # System deployment
    ns = run_nameserver()
    agent = run_agent('Example')

    # Log a message
    agent.log_info('Hello world!')

    ns.shutdown()