Skip to main content

FreeHackQuest Python Client Library for fhq-server

Project description

libfreehackquest-client-py

PyPI Total alerts Language grade: Python

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.

Files for libfreehackquestclient, version 0.2.36
Filename, size File type Python version Upload date Hashes
Filename, size libfreehackquestclient-0.2.36-py3-none-any.whl (18.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size libfreehackquestclient-0.2.36.tar.gz (13.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page