am_i_up/am_i_up/server.py

24 lines
641 B
Python

#
# Copyright 2025 James Pace
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#
from am_i_up.Api import Api
from am_i_up.Facts import Facts
from am_i_up.Ros import Ros
import asyncio
def main():
facts = Facts()
api = Api(facts)
ros = Ros(facts)
future = asyncio.gather(api.run(), ros.run())
asyncio.get_event_loop().run_until_complete(future)