Keyauth.win API Wrapper for python3
Project description
Keyauth API Wrapper
- KeyAuth is an Open-source authentication system with cloud-hosted subscriptions available as well.
Installation
pip3 install keyauth
Usage
import pwinput
from keyauth import *
client = Keyauth(
name="application name",
owner_id="your account id",
secret="application secret",
version="current version",
file_hash=misc.get_checksum()
)
print(client.application)
print("Validation status: %s" % (client.check()))
print("Blacklist status: %s" % (client.check_blacklist()))
print()
print("1=login; 2=register; 3=upgrade, 4=license key")
option = int(input("Option: "))
if option == 1:
reply = client.login(
username=input("Username: "),
password=pwinput.pwinput("Password: ")
)
if option == 2:
reply = client.register(
username=input("Username: "),
password=pwinput.pwinput("Password: "),
license_key=pwinput.pwinput("License: ")
)
if option == 3:
reply = client.upgrade(
username=input("Username: "),
license_key=pwinput.pwinput("License: ")
)
if option == 4:
reply = client.license(
license_key=pwinput.pwinput("License: ")
)
print(client.user)
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
keyauth-1.0.3.win-amd64.zip
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keyauth-1.0.3.win-amd64.zip.
File metadata
- Download URL: keyauth-1.0.3.win-amd64.zip
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e1714693471c68d696b3052a8ce2aa024753c7316ee42c7b59636bab59544a1
|
|
| MD5 |
7bc9c3b6259f6f5934f2e8bf58eb6b88
|
|
| BLAKE2b-256 |
68c2f49d3d2df85e00ba1f95f1d9c7a4b1f12db57b60406504b8d9b7f8476f0c
|
File details
Details for the file keyauth-1.0.3-py3-none-any.whl.
File metadata
- Download URL: keyauth-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce0a437be7ef381386da51691e7f960e31de84b2b2bc22b772a6574b230c798
|
|
| MD5 |
1db70fcc60747015321b0726b33d60ae
|
|
| BLAKE2b-256 |
6aa3713818ae03f7da9cf7d6de45a86b0368017f40bd0d5fd801463ccaf362b0
|