Skip to main content

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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for libfreehackquestclient, version 0.2.24
Filename, size File type Python version Upload date Hashes
Filename, size libfreehackquestclient-0.2.24-py2-none-any.whl (9.8 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size libfreehackquestclient-0.2.24.tar.gz (10.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page