Buckets:

download
raw
781 Bytes
"""Load test app for profiling."""
import os
os.environ["ZENITH_ENV"] = "production"
os.environ["SECRET_KEY"] = "benchmarksecretkey12345678901234"
from zenith import Zenith
app = Zenith()
@app.get("/")
async def hello():
return {"message": "Hello, World!"}
@app.get("/json")
async def json_response():
return {
"users": [
{"id": i, "name": f"User {i}", "email": f"user{i}@example.com"}
for i in range(10)
],
"total": 10,
"page": 1,
}
@app.get("/compute")
async def compute():
# Simulate some computation
result = sum(i * i for i in range(1000))
return {"result": result}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="127.0.0.1", port=8200, log_level="warning")

Xet Storage Details

Size:
781 Bytes
·
Xet hash:
454f8ed17c86f1ed650da9b132f6044ce4f1478f813b52b826bc8db14b49a227

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.