| #!/usr/bin/env python3 | |
| # /// script | |
| # dependencies = [] | |
| # /// | |
| import time | |
| import sys | |
| import os | |
| # Force unbuffered output | |
| os.environ['PYTHONUNBUFFERED'] = '1' | |
| print('π UV CLI Test - Starting...', flush=True) | |
| sys.stdout.flush() | |
| for i in range(5): | |
| print(f'β Step {i+1}/5 from UV CLI test', flush=True) | |
| sys.stdout.flush() | |
| time.sleep(1) | |
| print('π UV CLI Test - Complete!', flush=True) | |
| sys.stdout.flush() | |