Python library to interact with Goodgame Empire websocket server.
Project description
Green Jasmine Tea (gjt)
A python library to connect and interact with Goodgame Empire websocket servers
Authors:
Deployment
To install this library run
pip install gjt
Demo
from gjt import connect_to_websocket, login_to_account
async def main():
async with connect_to_websocket("PL1") as ws:
print("Connected with websocket")
await login_to_account("Account", "Password")
# Sending a JSON Message
data = await ws.send_json("gcm", json_data, True)
print(data) # {"S": {"TT": 100, "PT": 0}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gjt-2.2.1.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gjt-2.2.1-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file gjt-2.2.1.tar.gz.
File metadata
- Download URL: gjt-2.2.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb19d262807e83e864c5a085df60a94809a7678d74139ce5b3c2cd4b1439fc70
|
|
| MD5 |
936bbd033d9aabc8f26c9ba59a826e95
|
|
| BLAKE2b-256 |
299cdb8eedd4860a412c082f495a54ce531dd860575178ef2f6f1052be38434b
|
File details
Details for the file gjt-2.2.1-py3-none-any.whl.
File metadata
- Download URL: gjt-2.2.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e761254567de8153d42fe8a301784190cadd1ddb8ee251cf05df99c6f6a6bde9
|
|
| MD5 |
fb8faae821a53b917713c2d60909fa0a
|
|
| BLAKE2b-256 |
aba1444e9dfb237f8a6e15f521f6efa598b10dfbae4a7a6e818f0b1eab60266f
|