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.

Source Distribution

screeps-0.1.5.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file screeps-0.1.5.tar.gz.

File metadata

  • Download URL: screeps-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for screeps-0.1.5.tar.gz
Algorithm Hash digest
SHA256 32d93f2848bacc89b1b485a401c11ad715e9526f6d0a6a829d7b6ae411f65e5b
MD5 da8d12ac17552595115ae6cc3ec50824
BLAKE2b-256 2b623d26296b32862b368791e6d288f43e2f761dc314105b52d72b4b5c0f9879

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page