Skip to main content
Help us improve Python packaging – donate today!

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`

Release history Release notifications

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
screeps-0.1.5.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None May 27, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page