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.54.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freehackquest_libclient_py-0.2.54-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: freehackquest-libclient-py-0.2.54.tar.gz
  • Upload date:
  • Size: 18.6 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.14 CPython/3.10.12

File hashes

Hashes for freehackquest-libclient-py-0.2.54.tar.gz
Algorithm Hash digest
SHA256 4ce02dca700689f769f24e0406f1e80b73efd9e598dada953db860b34195f7a0
MD5 44861fc4ffd07feb7c5962b6a884f5d4
BLAKE2b-256 19293eb3115375d54070f0c820832087f63d9dc91b09aca65d20eb446e5b49b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freehackquest_libclient_py-0.2.54-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.14 CPython/3.10.12

File hashes

Hashes for freehackquest_libclient_py-0.2.54-py3-none-any.whl
Algorithm Hash digest
SHA256 0b84eb9de768ec793b275e1df8e4814de1c60926da81f2da1b5ef7a8c89df2bc
MD5 3ed43fa3b90e82416657b5599893f1a5
BLAKE2b-256 56ca7b823431716301c173f9f8d492ed431f00043b19b38fe633e92043f425f1

See more details on using hashes here.

Supported by

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