_..._ ___
.:::::::. `"-._.-''.
, /:::::::::\ ': \ _._
\:-::::::::::::\ :. | /|.-' /:::\
\::::::::\:::::| ': | | / |:::|
`:::::::|:::::\ ': | `\ | __ |\::/\
-:::-|::::::| ': | .`\ .\_.' `.__/ |
|::::::\ ':. | \ ';:: /.-._ , /
|:::::::| :. / ,`\;:: \'./0) |_.-/
;:::::::| ': | \.`;::. `` | |
\::::::/ :' / _\::::' / /
\::::| :' / ,=:;::/ |
\:::| :' | (='` // / |
\::\ `: / '--' | /\ |
GITHUB.COM/SKUNK-INK \:::. `:_|.-"`"-. \__.-'/::\ |
░▒█▀▀▀█░▒█░▄▀░▒█░▒█░▒█▄░▒█░▒█░▄▀ '::::.:::...:::. '. /:::| |
░░▀▀▀▄▄░▒█▀▄░░▒█░▒█░▒█▒█▒█░▒█▀▄░ '::/::::::::::::. '-.__.:::::| |
░▒█▄▄▄█░▒█░▒█░░▀▄▄▀░▒█░░▀█░▒█░▒█ |::::::::::::\::..../::::::| /
|:::::::::::::|::::/::::::://
░▒█░░▒█░▒█▀▀▀█░▒█▀▀▄░▒█░▄▀░▒█▀▀▀█ \:::::::::::::|'::/::::::::/
░▒█▒█▒█░▒█░░▒█░▒█▄▄▀░▒█▀▄░░░▀▀▀▄▄ /\::::::::::::/ /:::::::/:|
░▒▀▄▀▄▀░▒█▄▄▄█░▒█░▒█░▒█░▒█░▒█▄▄▄█ |::';:::::::::/ |::::::/::;
HANDSHAKE API WRAPPER |:::/`-:::::;;-._ |:::::/::/
|:::| `-::::\ `|::::/::/
|:::| \:::\ \:::/::/
/:::/ \:::\ \:/\:/
(_::/ \:::;__ \\_\\___
(_:/ \::):):)\:::):):)
`" `""""` `""""""`
Install the handywrapper
package using PIP:
pip install handywrapper
Source Code: api.py
For more information on using the Handshake API, visit the Handshake API Docs
# Import
from handywrapper import api
# Use default ip and port
hsd = api.hsd('api-key')
hsw = api.hsw('api-key')
# Or specify
hsd = api.hsd('api-key', '0.0.0.0', 14037)
hsw = api.hsw('api-key', '0.0.0.0', 14039)
# Then use
response = hsd.getInfo()
print(response)
response = hsw.resetAuthToken('primary', 'secret123')
print(response)