# 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`
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 files for screeps 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| screeps-0.1.5.tar.gz | 2.6 kB | Details |
Release files / screeps-0.1.5.tar.gz
| Download URL | screeps-0.1.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32d93f2848bacc89b1b485a401c11ad715e9526f6d0a6a829d7b6ae411f65e5b
|
|
BLAKE2b-256 checksum How to use checksums |
2b623d26296b32862b368791e6d288f43e2f761dc314105b52d72b4b5c0f9879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |