-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_server.py
More file actions
36 lines (30 loc) · 841 Bytes
/
Copy pathrun_server.py
File metadata and controls
36 lines (30 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""Launch PullData API Server with Web UI.
Usage:
python run_server.py
The server will start on http://localhost:8000
- Web UI: http://localhost:8000/ui/
- API Docs: http://localhost:8000/docs
"""
import uvicorn
from pulldata.server import app
if __name__ == "__main__":
print("=" * 60)
print("🚀 Starting PullData API Server")
print("=" * 60)
print()
print("Server will start on: http://localhost:8000")
print()
print("Quick Links:")
print(" • Web UI: http://localhost:8000/ui/")
print(" • API Docs: http://localhost:8000/docs")
print(" • Health: http://localhost:8000/health")
print()
print("Press CTRL+C to stop the server")
print("=" * 60)
print()
uvicorn.run(
app,
host="0.0.0.0",
port=8000,
log_level="info",
)