Skip to main content

FreeHackQuest Python Client Library for fhq-server

Project description

freehackquest-libcliet-py

PyPI Total alerts Language grade: Python

FreeHackQuest Python Client Library for fhq-server: https://github.com/freehackquest/fhq-server.git

Install

pip3 install freehackquest-libclient-py

or

pip3 install freehackquest-libclient-py --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

freehackquest-libclient-py-0.2.51.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file freehackquest-libclient-py-0.2.51.tar.gz.

File metadata

  • Download URL: freehackquest-libclient-py-0.2.51.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.26.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for freehackquest-libclient-py-0.2.51.tar.gz
Algorithm Hash digest
SHA256 354772942bc2e573975f5d8900366b241bf555341310ff8e388fb2a2fb59affc
MD5 443ac346e6564957e4ee5daaa04c3402
BLAKE2b-256 3cab7eed300a428d8cf747c3a94e4972c7597c64e05a41dba2db5ba963bea955

See more details on using hashes here.

File details

Details for the file freehackquest_libclient_py-0.2.51-py3-none-any.whl.

File metadata

  • Download URL: freehackquest_libclient_py-0.2.51-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.26.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for freehackquest_libclient_py-0.2.51-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b898e2e2f70966341d755ffff4f23dea346dd1b70518e40ecbf3a54292f21d
MD5 418b9d0ef7c2e204feb3a29a82a870e4
BLAKE2b-256 78dbf59bbd83ca810f6c43552a6234329cf4c133ed3ddd665a3076f5fd7a8168

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