FreeHackQuest Python Client Library for fhq-server
Project description
freehackquest-libcliet-py
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354772942bc2e573975f5d8900366b241bf555341310ff8e388fb2a2fb59affc |
|
MD5 | 443ac346e6564957e4ee5daaa04c3402 |
|
BLAKE2b-256 | 3cab7eed300a428d8cf747c3a94e4972c7597c64e05a41dba2db5ba963bea955 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6b898e2e2f70966341d755ffff4f23dea346dd1b70518e40ecbf3a54292f21d |
|
MD5 | 418b9d0ef7c2e204feb3a29a82a870e4 |
|
BLAKE2b-256 | 78dbf59bbd83ca810f6c43552a6234329cf4c133ed3ddd665a3076f5fd7a8168 |