diff options
author | Filipp Lepalaan <filipp@mac.com> | 2020-11-01 20:01:35 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2020-11-01 20:01:35 +0200 |
commit | 494dedf17035c1699c35cd2559f15a64eaa7eff3 (patch) | |
tree | 376e1736e696074e6ddb0cde7d9c4345b895da25 /templates/fastapi.rst | |
download | hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.tar.gz hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.tar.bz2 hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.zip |
Initial commit
Diffstat (limited to 'templates/fastapi.rst')
-rw-r--r-- | templates/fastapi.rst | 15 |
1 files changed, 15 insertions, 0 deletions
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() |