An API Wrapper for online-go.com, an online Go / Baduk server
Project description
OGS Python Library
Summary
An API wrapper written in python for the Online-Go Server's (OGS) REST API and Realtime (SocketIO) API
NOTE While the project is mostly functional, this is still a work in progress, and is not yet ready for production use.
Documentation
The documentation is built automatically using mkdocs and mkdocstrings.
Read the documentation here for more info: https://ogs-python.dakotamarshall.net/
Install
Pip Package
python3 -m pip install ogsapi
Manual
Installing the specific versions in requirements.txt is REQUIRED, the OGS API does not support newer versions, and these versions of socketio and engineio are tested to be compatible with each other.
pip3 install -r requirements.txt
If you install the wrong version by accident, you must uninstall and re-install.
pip3 uninstall python-engineio python-socketio
pip3 install -r requirements.txt
Usage
from ogsapi.client import OGSClient
ogs = OGSClient('your_client_id', 'your_client_secret', 'your_username', 'your_password')
This will authenticate you to OGS using your API credentials, and connect you to the Realtime API Socket. You can now call the usable functions.
Implemented API Functions
NOTE All usernames are case sensitive
Look at the documentation to see what methods are available under OGSClient and OGSSocket / OGSGame
See the checklist for a rough list of what is left to be implemented
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
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
File details
Details for the file ogsapi-1.3.0.tar.gz.
File metadata
- Download URL: ogsapi-1.3.0.tar.gz
- Upload date:
- Size: 52.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb2b6861183fbbb517d8ee236f34fd46e8d364060563bf25914c1484128b5246
|
|
| MD5 |
a4d185f00e6bcbfcab6b693977ccbf31
|
|
| BLAKE2b-256 |
f3d38821a2c6adc29ff92cea48fd3d527c1cd099f156c1a76b0966e5b433809c
|
File details
Details for the file ogsapi-1.3.0-py3-none-any.whl.
File metadata
- Download URL: ogsapi-1.3.0-py3-none-any.whl
- Upload date:
- Size: 45.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b248082f2e1ace075934ecb3bf93ebe68018d03290877e60e76f6adf97b08449
|
|
| MD5 |
6a44ef6ec87f7ce2a0243dfeea9ff993
|
|
| BLAKE2b-256 |
772a55bdc5cd476d39bca8aadcabe6a34054ae63b6e1e9e2e2c56843856439cd
|