Skip to main content

The Galaxy Life API requester.

Project description

Logo

France Leader

A Galaxy Life API requester in Python

Join Discord of France Leader Join Discord of Galaxy Life Galaxy Life API python requester

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gl-api-requester-1.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

gl_api_requester-1.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for gl-api-requester-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1bb2bccf9569b4b1ba48f9d0cd1e3afd9b874ddac9ee1edecf4f6aff0afe923a
MD5 7bc8e1abde550f65b38c6c251b6fd84b
BLAKE2b-256 855c0ce67e8da952aeb4e081f41a09298e69dbae09e19a1997562910ddf672e9

See more details on using hashes here.

File details

Details for the file gl_api_requester-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gl_api_requester-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e27b30829c4da6366164892503a29d06d39a7983560ec34a698d24207a863c8
MD5 7bb0589314a3ce1c4b48acd30e939376
BLAKE2b-256 f8c8568b75eee37d94d5b42e6c5e0c19ece64d4da86ba77746ae27cf2c54c5c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page