I need a lean Python routine that can reserve an appointment by talking straight to the target site’s backend: no Selenium, no browser emulation, no JavaScript execution—just clean HTTP traffic through the requests or httpx library. Scope • One end-to-end attempt (availability check → reservation call → confirmation fetch) must complete in 0.5–2 s. • The script should handle all tokens, cookies, headers, and CSRF measures the site expects, retry gracefully on intermittent failures, and write concise logs so I can audit each step later. • Configuration (URL endpoints, desired date/time, user credentials) should live in a single settings file or clear constants block so I can adapt the code to multiple providers. Deliverables 1. Well-commented Python file (requests or httpx only) implementing: – check_availability() – reserve_slot() – confirm_reservation() 2. Minimal README explaining required Python version, setup, and usage. 3. Postman collection or cURL examples showing the raw calls for manual verification. Acceptance criteria • End-to-end speed consistently under 2 s on my VPS. • Successful reservation rate ≥ 95 % across 100 consecutive attempts. • Code passes black/flake8 and contains no hard-coded secrets. When you respond, focus on your experience crafting similar server-side automations, especially any work bypassing front-end frameworks or replicating complex authentication flows. Live demo videos or GitHub snippets are welcome but not required.