123456789101112131415161718 |
- #!/usr/bin/env python3
- import os, sys
- sys.path.insert(
- 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")),
- )
- from wsgiref.simple_server import make_server
- from med_testing_apis.server import get_server, get_port, get_hostname
- if __name__ == "__main__":
- print("See testing api server at the following address and port:")
- print(f"http://{get_hostname()}:{get_port()}/")
- server = get_server()
- server.serve_forever()
|