The Galaxy Life API requester.
Project description
France Leader
A Galaxy Life API requester in Python
Galaxy Life Python Api Requester
A simple pip package to make request on the Galaxy Life game API.
Installation
pip install gl-api-requester
Usage
from gl_api_requester import *
try:
requester = GLAPIRequester()
# Alliance request
requester.get_alliance(name="France Leader")
requester.get_alliance_warpoint_leaderboard()
# Leaderboard request
requester.get_leaderboard_xp()
requester.get_leaderboard_xp_from_attack()
requester.get_leaderboard_rivals_wons()
requester.get_leaderboard_warpoint()
# Status request
requester.get_status()
# Users request
requester.get_user_from_name('vadeledav')
requester.get_user_from_id(player_id="268172")
requester.get_search_user_by_name(player_name="vadeledav")
requester.get_user_steam_account(player_id=76561198403360223)
requester.get_user_platform_id(player_id=268172)
requester.get_user_stats(player_id="268172")
requester.get_user_count()
except APIErrorException as e:
print(e.api_error)
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
File details
Details for the file gl-api-requester-1.0.1.tar.gz
.
File metadata
- Download URL: gl-api-requester-1.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb2bccf9569b4b1ba48f9d0cd1e3afd9b874ddac9ee1edecf4f6aff0afe923a |
|
MD5 | 7bc8e1abde550f65b38c6c251b6fd84b |
|
BLAKE2b-256 | 855c0ce67e8da952aeb4e081f41a09298e69dbae09e19a1997562910ddf672e9 |
File details
Details for the file gl_api_requester-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: gl_api_requester-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e27b30829c4da6366164892503a29d06d39a7983560ec34a698d24207a863c8 |
|
MD5 | 7bb0589314a3ce1c4b48acd30e939376 |
|
BLAKE2b-256 | f8c8568b75eee37d94d5b42e6c5e0c19ece64d4da86ba77746ae27cf2c54c5c9 |