@classmethod
    def login(
            cls, username=None, password=None, requests_session=None,
            rate_limit=None
    ):
        requests_session = requests_session or requests.Session()
        session = cls(requests_session, rate_limit)
        # settings.USERNAME and settings.PASSWORD should not be made
        # the defaults to their respective arguments because doing so
        # would prevent this function from picking up any changes made
        # to those values after import time.
        username = username or settings.USERNAME
        password = password or settings.PASSWORD
        session.do_login(username, password)
        return session
Get a session that has authenticated with okcupid.com.
dataset/ETHPy150Open IvanMalison/okcupyd/okcupyd/session.py/Session.login