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.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

supremacy1914_wrapper-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supremacy1914_wrapper-0.1.2.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.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for supremacy1914_wrapper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9f6acc987f673fc13573aaefb761f77a2cc3f90a9bae98559313579757492ad3
MD5 c3a7fe0445b1acc8575aa021469f5db1
BLAKE2b-256 8c2808265f3201da3ada9327663d0ed2afe5bd3b0ba2a4e83da5f330f09ae8e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supremacy1914_wrapper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.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.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for supremacy1914_wrapper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3713d211db3edb6d2c3ccb6609eba11ad3826aaad20b20f94149c95db0a39ff2
MD5 1158e2ddca2e42b6a858f45a63c6e66f
BLAKE2b-256 87c5690e5cc2e99082ddaab1cafe2bc869415c6a1be68de1c0561f4b3ed238f5

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