Skip to main content

Library connecting to the screeps api.

Project description

# Screeps library

Library to connect to the screeps API either via REST or websocket.
Example for using the library can be seen at
https://github.com/TooAngel/screeps-cli.


## Rest

- `get_me()` Returns the user object for the logged in user
- `console(command)` Sends the command to the console

## Websocket
Websocket connection for fetching the console log
```
from screeps.screeps import Connection

def sysout(message):
print(message)

conn = Connection(email, password, arguments['--ptr'])
conn.startWebSocket(sysout)
```


## Deploy

`python setup.py sdist upload`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for screeps, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size screeps-0.1.5.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page