Python library to communicate with Divine Warfare game API
Project description
DwaPython
=========
[](https://travis-ci.org/Salamek/DwaPython)
Python library to communicate with Divine Warfare game API http://api.divine-warfare.com/doc/
# Installation
pip install DwaPython
# Usage
Usage is simple:
```python
#import a library
from dwa import Dwa
#set API token and URI of api (http://api.divine-warfare.com/ or http://apitest.divine-warfare.com/ for testing purposes)
dwa = Dwa('32len_api_token', 'http://apitest.divine-warfare.com/')
#get user obj
user = dwa.user()
#get list of users
list_of_users = user.list({'limit': 20, 'page': 0})
#get user token info
user_token_info = user.token({'username': 'test', 'password': 'test'})
#get server obj
server = dwa.server()
#get list of servers
list_of_servers = server.list({'limit': 20, 'page':0})
#More info on http://api.divine-warfare.com/doc/
```
=========
[](https://travis-ci.org/Salamek/DwaPython)
Python library to communicate with Divine Warfare game API http://api.divine-warfare.com/doc/
# Installation
pip install DwaPython
# Usage
Usage is simple:
```python
#import a library
from dwa import Dwa
#set API token and URI of api (http://api.divine-warfare.com/ or http://apitest.divine-warfare.com/ for testing purposes)
dwa = Dwa('32len_api_token', 'http://apitest.divine-warfare.com/')
#get user obj
user = dwa.user()
#get list of users
list_of_users = user.list({'limit': 20, 'page': 0})
#get user token info
user_token_info = user.token({'username': 'test', 'password': 'test'})
#get server obj
server = dwa.server()
#get list of servers
list_of_servers = server.list({'limit': 20, 'page':0})
#More info on http://api.divine-warfare.com/doc/
```
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
DwaPython-1.2.1.tar.gz
(19.8 kB
view details)
File details
Details for the file DwaPython-1.2.1.tar.gz.
File metadata
- Download URL: DwaPython-1.2.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c934f5f824622a7561a57a3dcbaf5e01235c1605c66a5753bdef6b68c401f4
|
|
| MD5 |
ab89ed731583c2e965c0bfbe647faa44
|
|
| BLAKE2b-256 |
0cedabf18fd1fe42dd56f5ea2d5c7c925182f8182afc768b966c72a1d1eb2ea1
|