DwaPython-1.2.1
توضیحات
Python library to communicate with Divine Warfare game API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DwaPython-1.2.1 |
| نام | DwaPython |
| نسخه کتابخانه | 1.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Adam Schubert |
| ایمیل نویسنده | adam.schubert@sg1-game.net |
| آدرس صفحه اصلی | https://github.com/Salamek/DwaPython |
| آدرس اینترنتی | https://pypi.org/project/DwaPython/ |
| مجوز | UNKNOWN |
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/
```
نحوه نصب
نصب پکیج whl DwaPython-1.2.1:
pip install DwaPython-1.2.1.whl
نصب پکیج tar.gz DwaPython-1.2.1:
pip install DwaPython-1.2.1.tar.gz