import httpx import sys resp = httpx.post('http://localhost:8000/api/auth/jwt/login', data={'username': 'crowsistemas@proton.me', 'password': 'admin123456'}) print(resp.json()['access_token'])