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 details)

Uploaded Source

Built Distribution

supremacy1914_wrapper-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file supremacy1914_wrapper-0.1.1.tar.gz.

File metadata

  • Download URL: supremacy1914_wrapper-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for supremacy1914_wrapper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2e9374151b9ee646ff766935d73803cf6c394013fbdee66d1b6a69e7ab36660
MD5 55f75e2945750ad69fc01b81efe20f3d
BLAKE2b-256 ef0d8e948c3708f50a14d4fafc9ecc31f642b5398ce03bbe0c4f94636b83bb3e

See more details on using hashes here.

File details

Details for the file supremacy1914_wrapper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: supremacy1914_wrapper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for supremacy1914_wrapper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff809ec732b0c1a6b2875cbbbec2694ade2478f8c7ca1697278114e971932ec
MD5 cfa5c0aa82bedd7b2e65cca338ae78c3
BLAKE2b-256 a00c945d8d8e12d4ad4251493fe842a0571db00f2ccdcacb29a9cd160e0dca8e

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