FreeHackQuest Python Client Library for fhq-server
Project description
freehackquest-libcliet-py
FreeHackQuest Python Client Library for fhq-server: https://github.com/freehackquest/fhq-server.git
Install
pip3 install freehackquestclient
or
pip3 install freehackquestclient --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
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
Close
Hashes for freehackquest-libclient-py-0.2.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe2a7a5e578dd6ae9235f2ad64b4985bbd7bbe5a2adb24ef0aea91ff3130ae9 |
|
MD5 | 55682dc484e015d3a01c2ac44cda5323 |
|
BLAKE2b-256 | 3c4ebbe0448c67ff9401918d85931aa3dfe2450668980bb141bb2ac63ecf25cb |
Close
Hashes for freehackquest_libclient_py-0.2.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2660875d086cb00515f9fa9823ee5020c1a53275434437a8d36073424df5db6d |
|
MD5 | 0ebb609e49a4d4495a11c48b4b366da9 |
|
BLAKE2b-256 | 7a16b4e34b9d50189d458c27cc55cbf8422493a2d0b7396c44a79f67f2c87cd3 |