Spaces:
Sleeping
Sleeping
Download run_client.bat from Vignesh5656/transformation-api: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/spaces/Vignesh5656/transformation-api/resolve/main/run_client.bat
- Command line
-
hf download hf://spaces/Vignesh5656/transformation-api/run_client.bat
-
curl -L -o run_client.bat https://huggingface.co/spaces/Vignesh5656/transformation-api/resolve/main/run_client.bat
2 kB
| @echo off | |
| REM FastAPI Processing Simulator - Client Runner | |
| REM This script provides easy ways to run the WebSocket client | |
| echo. | |
| echo ================================================ | |
| echo FastAPI Processing Simulator - Client Runner | |
| echo ================================================ | |
| echo. | |
| REM Check if Python is available | |
| python --version >nul 2>&1 | |
| if errorlevel 1 ( | |
| echo Error: Python is not installed or not in PATH | |
| echo Please install Python and try again. | |
| pause | |
| exit /b 1 | |
| ) | |
| REM Check if websockets module is available | |
| python -c "import websockets" >nul 2>&1 | |
| if errorlevel 1 ( | |
| echo Installing required websockets module... | |
| pip install websockets | |
| if errorlevel 1 ( | |
| echo Error: Failed to install websockets module | |
| pause | |
| exit /b 1 | |
| ) | |
| ) | |
| :menu | |
| echo. | |
| echo Select an option: | |
| echo 1. Interactive mode (default) | |
| echo 2. Quick test (sample data) | |
| echo 3. Stress test (5 concurrent requests) | |
| echo 4. Custom automated test | |
| echo 5. Exit | |
| echo. | |
| set /p choice="Enter your choice (1-5): " | |
| if "%choice%"=="1" goto interactive | |
| if "%choice%"=="2" goto quicktest | |
| if "%choice%"=="3" goto stresstest | |
| if "%choice%"=="4" goto customtest | |
| if "%choice%"=="5" goto exit | |
| if "%choice%"=="" goto interactive | |
| echo Invalid choice. Please try again. | |
| goto menu | |
| :interactive | |
| echo. | |
| echo Starting interactive mode... | |
| python client.py --interactive | |
| goto menu | |
| :quicktest | |
| echo. | |
| echo Running quick test with sample data... | |
| python client.py --folder "sample-folder" --env "production" | |
| pause | |
| goto menu | |
| :stresstest | |
| echo. | |
| echo Running stress test with 5 concurrent requests... | |
| python client.py --stress 5 | |
| pause | |
| goto menu | |
| :customtest | |
| echo. | |
| set /p folder="Enter folder name: " | |
| set /p env="Enter environment: " | |
| set /p url="Enter WebSocket URL (or press Enter for default): " | |
| if "%url%"=="" ( | |
| python client.py --folder "%folder%" --env "%env%" | |
| ) else ( | |
| python client.py --url "%url%" --folder "%folder%" --env "%env%" | |
| ) | |
| pause | |
| goto menu | |
| :exit | |
| echo. | |
| echo Goodbye! | |
| exit /b 0 |