- If you don't have pip, install pip.
- Why don't you have pip.
- Install the package requirements (currently request and websocket) if you don't have them.
import screepsapi
user = "MyUsername"
password = "TimeTravelingSecretAgentForHire"
api = screepsapi.API(user, password)
user = api.user_find("tedivm")
print user["user"]["gcl"]
Specify 'host' and 'secure' to connect to a private server. local servers don't seem to have TLS, so default is off. Be wary if connecting over the internet to your private server!
api = screepsapi.API(user, password, host="locahost:21025")