FreeHackQuest Python Client Library for fhq-server
Project description
libfreehackquest-client-py
FreeHackQuest Python Client Library for fhq-server: https://github.com/freehackquest/fhq-server.git
Install
pip3 install libfreehackquestclient --upgrade
Example code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from libfreehackquestclient 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 libfreehackquestclient-0.2.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c9e0572e6519de42626a0e5b13e94ff449790cb6ddc38036241fef5e2865baa |
|
MD5 | 29cb3b3e20308951e1142e0592b2edd8 |
|
BLAKE2b-256 | 0cf8fa70c6320c6c3085d9b4e5f1d7fcd0fb0602914ca9c8354bcc1929e415a2 |
Close
Hashes for libfreehackquestclient-0.2.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f864510752fc67443cb9218c9ddb0b78015721d99763bc88a57c496c2051ab25 |
|
MD5 | bc4570435f3752e51c88359962f053dd |
|
BLAKE2b-256 | 26800a5ddcf053ac980c6aff853b92d24cabb0d8901f0b76264b3d53c351e987 |