Skip to main content

Open Game Protocol Client for Python 3

Project description

pyogpclient

Open Game Protocol Client for Python 3

Usage

from pyogpclient import OGPClient

client = OGPClient("example.com", 7776)
status = client.query()

print("Current Players: " + str(status["info"]["player_count"]) + " / " + str(status["info"]["slot_max"]))

Response

  • game_id
  • info
    • game_name
    • type
    • type_name
    • password
    • proxy
    • os
    • os_name
    • host_name
    • host_name_color
    • connect_port
    • mod
      • name
      • id
      • size
      • version
      • url
      • author
    • game_type
    • game_mode
    • map
      • name
      • file_name
      • file_size
      • file_md5
      • version
      • url
      • author
    • next_map (see map)
    • player_count
    • slot_max
    • bot_count
    • reserved_slots

Missing Fields (TODO)

  • teams
  • players
  • rules
  • addons
  • limits

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

pyogpclient-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pyogpclient-0.0.1-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

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