freehackquest-libclient-py-0.2.51
توضیحات
FreeHackQuest Python Client Library for fhq-server
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | freehackquest-libclient-py-0.2.51 |
| نام | freehackquest-libclient-py |
| نسخه کتابخانه | 0.2.51 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | FreeHackQuest Team |
| ایمیل نویسنده | freehackquest@gmail.com |
| آدرس صفحه اصلی | https://github.com/freehackquest/freehackquest-libclient-py |
| آدرس اینترنتی | https://pypi.org/project/freehackquest-libclient-py/ |
| مجوز | - |
# freehackquest-libcliet-py
 [](https://lgtm.com/projects/g/freehackquest/freehackquest-libclient-py/alerts/) [](https://lgtm.com/projects/g/freehackquest/freehackquest-libclient-py/context:python)
FreeHackQuest Python Client Library for fhq-server: [https://github.com/freehackquest/fhq-server.git](https://github.com/freehackquest/fhq-server.git)
## Install
```
pip3 install freehackquest-libclient-py
```
or
```
pip3 install freehackquest-libclient-py --upgrade
```
## Example code
```
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from freehackquest_libclient_py import FreeHackQuestClient
fhq = FreeHackQuestClient("ws://freehackquest.com:1234/ws-api/")
q = fhq.quest({"questid": 148})
print("quest: " + str(q))
# or "ws://freehackquest.com:1234" or "ws://freehackquest.com/ws-api/"
resp = fhq.login({"email": "admin", "password": "admin"})
if resp == None:
print('Could not login as user (1)')
if resp['result'] == 'FAIL':
print('Could not login as user (1)')
print("user info: " + str(resp))
```
Full description API here: [API.md](./API.md)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.21.0 | requests |
| >=0.56.0 | websocket-client |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl freehackquest-libclient-py-0.2.51:
pip install freehackquest-libclient-py-0.2.51.whl
نصب پکیج tar.gz freehackquest-libclient-py-0.2.51:
pip install freehackquest-libclient-py-0.2.51.tar.gz