def make_session(token):
    """Create a requests.Session with our service token in the Authorization header"""
    session = requests.Session()
    session.headers = {"Authorization": f"token {token}"}
    return session
Create a requests.Session with our service token in the Authorization header
examples/server-api/start-stop-server.py