Skip to main content

Supremacy1914 API wrapper in Python

Project description

Supremacy 1914 API Wrapper

This unofficial API wrapper is an implementation of the Supremacy 1914 API. This wrapper support API data as far as known and is intended to be easy to use. You'll only need to supply the server URL and the game_id before you'll be able to get data.

Install

$ pip install supremacy1914-wrapper

Simple Demo

from supremacy1914_wrapper import Supremacy

# Create an instance using game_id and host:

sup = Supremacy("2502620", "http://xgs1.c.bytro.com")

# get players in JSON format 
sup.players()

Documentation

Other information about functions and exceptions can be found on the wiki.

Development

I'll try to improve the wrapper as far as I need. If you'd like to see a new feature you can open an issue or make pull request.

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

supremacy1914_wrapper-0.1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

supremacy1914_wrapper-0.1.1-py3-none-any.whl (7.1 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