Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tert0/cryptic-sdk

A Cryptic SDK for Python
https://github.com/tert0/cryptic-sdk

hacktoberfest python sdk wrapper wrapper-api wrapper-library

Last synced: 16 days ago
JSON representation

A Cryptic SDK for Python

Awesome Lists containing this project

README

        

# Cryptic SDK
A [Cryptic Game](https://github.com/cryptic-game/cryptic) SDK Library for Python
## Installation
```pip install cryptic-sdk```
## Example

```python
from cryptic_sdk import *

USERNAME = 'Username'
PASSWORD = 'Password'

myclient = Client('wss://ws.cryptic-game.net:443/')

print(myclient.request({"action": "status"}))
print(myclient.login(USERNAME, PASSWORD))

devices = myclient.ms('device', ['device', 'all'], {})
print(devices)
print(myclient.ms('device', ['device', 'info'], {'device_uuid': devices['devices'][0]['uuid']}))

print(myclient.logout())

```
## Docs
In Progess:
[Cryptic SDK Docs](https://cryptic-sdk.readthedocs.io/en/latest/)