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
Built Distribution
File details
Details for the file supremacy1914_wrapper-0.1.3.tar.gz
.
File metadata
- Download URL: supremacy1914_wrapper-0.1.3.tar.gz
- Upload date:
- Size: 2.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb5feb544956ca80e8b077deba8611784622fd740c602b17446671595df90f2 |
|
MD5 | cd6109264b39c20de6fcd0d4d2638ab5 |
|
BLAKE2b-256 | 69f2dc2f965439e77059737972386d829b5ca18645e6e8b2c73d44a5215ff749 |
File details
Details for the file supremacy1914_wrapper-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: supremacy1914_wrapper-0.1.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441bcef795ec2380ecb28f5d5a7889cae418fe44c5e1104f5c3514a5c20bd639 |
|
MD5 | 57ec8d36811d4c7d36059a37e919554d |
|
BLAKE2b-256 | 8e92d281dfac1405c6a953b93ed2844f7a9a648e19a6ae751fe495987a6799be |