grpc_client/clients/test.py

19 lines
375 B
Python
Raw Permalink Normal View History

2026-02-02 09:37:47 +08:00
import requests
2025-11-13 03:01:00 +08:00
2026-02-02 09:37:47 +08:00
#netsh advfirewall firewall add rule name="FastAPI 8000" dir=in action=allow protocol=TCP localport=8000
# "http://192.168.0.131:8000/action/one",
resp = requests.post(
"http://127.0.0.1:8000/action/drive_economy",
timeout=80000
)
# resp = requests.post(
# "http://192.168.0.131:8000/action/one",
# timeout=800000
# )
print(resp.json())