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.

Source Distribution

libfreehackquestclient-0.2.36.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

libfreehackquestclient-0.2.36-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file libfreehackquestclient-0.2.36.tar.gz.

File metadata

  • Download URL: libfreehackquestclient-0.2.36.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for libfreehackquestclient-0.2.36.tar.gz
Algorithm Hash digest
SHA256 1c9e0572e6519de42626a0e5b13e94ff449790cb6ddc38036241fef5e2865baa
MD5 29cb3b3e20308951e1142e0592b2edd8
BLAKE2b-256 0cf8fa70c6320c6c3085d9b4e5f1d7fcd0fb0602914ca9c8354bcc1929e415a2

See more details on using hashes here.

File details

Details for the file libfreehackquestclient-0.2.36-py3-none-any.whl.

File metadata

  • Download URL: libfreehackquestclient-0.2.36-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for libfreehackquestclient-0.2.36-py3-none-any.whl
Algorithm Hash digest
SHA256 f864510752fc67443cb9218c9ddb0b78015721d99763bc88a57c496c2051ab25
MD5 bc4570435f3752e51c88359962f053dd
BLAKE2b-256 26800a5ddcf053ac980c6aff853b92d24cabb0d8901f0b76264b3d53c351e987

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page