Library for simplified access to the Gerstlix API
Project description
pip install gerstlix_python
What is this?
Library for simplified access to the Gerstlix API
Quick Guide
To access the methods of the module, you need to:
from gerstlix_python *
gx = gerstlixAPI(token="your_token")
Example
from gerstlix_python *
gx = gerstlixAPI(token="your_token")
result = gx.get_members(server=3, fractionId=1)
print(result)
Output
{
"serverId": 1,
"serverName": "serverName",
"fractionId": 1,
"fractionName": "fractionName",
"playersLastUpdate": "2023-10-13 13:03:40",
"playersCount": 1,
"playersInfo": [
{
"nickname": "nickname",
"accountId": 1,
"rang": 1,
"rankLabel": "rankLabel",
"isLeader": true,
"isOnline": false,
"gameId": -1,
"level": -1
}
]
}
Currently available methods
.get_leader : params = server, fractionId
.get_deputy : params = server, fractionId
.get_members : params = server, fractionId
.get_minister : params = server, fractionId
.get_record_fraction : params = server, fractionId
.get_status : params = gameProject
.get_ghetto_territories : params = server
.get_old_players : params = server
.get_rich_players : params = server
.get_deputies : params = server
.get_leaders : params = server
.get_minister_list : params = server
.get_records : params = server
.get_ip : params = ip
types of parameters
server : INTEGER
fractionId : INTEGER
gameProject : STRING [ arz, marz, rrp ]
ip : IPv4
Other
developer: travkacode
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
gerstlix_python-0.2.1.tar.gz
(3.4 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
File details
Details for the file gerstlix_python-0.2.1.tar.gz.
File metadata
- Download URL: gerstlix_python-0.2.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc75144ff0a072bffc2dae8dc96910fffdc6a8ea4f61f99255bac0ba377dfb26
|
|
| MD5 |
828fba5e68b3fb24292f6006cba6b2bd
|
|
| BLAKE2b-256 |
36f40fe9cc7eb4f22b9fe4c3e59f3ddaaa369f78cb627e0fdcd15d210e3ac97d
|
File details
Details for the file gerstlix_python-0.2.1-py3-none-any.whl.
File metadata
- Download URL: gerstlix_python-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f95273a91d5ef4e0ddacbe9179c686fca9f2ecb7c8af8af9cd5593fd888a2fe8
|
|
| MD5 |
5237b7905690b4ff4cafd5cd9ef4e19a
|
|
| BLAKE2b-256 |
7311fed423070f528bc6c223deb8aa2444140ab70c995dd0c1bfe239994a4e67
|