| import sys | |
| import platform | |
| from fastapi import FastAPI | |
| app = FastAPI() | |
| def greet_json(): | |
| return {"Hello": "World!"} | |
| def get_version(): | |
| return { | |
| "python_version": sys.version.split()[0], | |
| "platform": platform.platform(), | |
| "full_version": sys.version | |
| } |
| import sys | |
| import platform | |
| from fastapi import FastAPI | |
| app = FastAPI() | |
| def greet_json(): | |
| return {"Hello": "World!"} | |
| def get_version(): | |
| return { | |
| "python_version": sys.version.split()[0], | |
| "platform": platform.platform(), | |
| "full_version": sys.version | |
| } |