From 494dedf17035c1699c35cd2559f15a64eaa7eff3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 1 Nov 2020 20:01:35 +0200 Subject: Initial commit --- templates/fastapi.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/fastapi.rst (limited to 'templates/fastapi.rst') diff --git a/templates/fastapi.rst b/templates/fastapi.rst new file mode 100644 index 0000000..8d80f55 --- /dev/null +++ b/templates/fastapi.rst @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import subprocess + +import fastapi + +app = fastapi.FastAPI() + + +def main(): + args = ["uvicorn", "main:app", "--reload"] + subprocess.call(args) + +if __name__ == '__main__': + main() -- cgit v1.2.3