Skip to main content

Keyauth.win API Wrapper for python3

Project description



<img src="https://cdn.keyauth.uk/front/assets/img/favicon.png" alt="Logo" width="120" height="120">

Keyauth API Wrapper

KeyAuth is an Open-source authentication system with cloud-hosted subscriptions available as well.

<br />

<br />

<a href="https://github.com/dropout1337/Telegram-AdBot/issues">Report Bug</a>

·

<a href="https://github.com/dropout1337/Telegram-AdBot/issues">Request Feature</a>


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.2.win-amd64.zip (17.1 kB view details)

Uploaded Source

Built Distribution

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

keyauth-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file keyauth-1.0.2.win-amd64.zip.

File metadata

  • Download URL: keyauth-1.0.2.win-amd64.zip
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for keyauth-1.0.2.win-amd64.zip
Algorithm Hash digest
SHA256 94a4ca026e37eea216b8652f4ce7594114eb203ab6d7ae3da470729e132f0914
MD5 04598e8ab0beab0ff51f53355ffed5f7
BLAKE2b-256 f8d6f7c2285822afa1cff51d6b6e0583a3e43f0dd08eb3ce5f4f542190d5d76e

See more details on using hashes here.

File details

Details for the file keyauth-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: keyauth-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for keyauth-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 350a3ed2561d65219e6513cca45d86cb183d65cc6bbba87b3fe53f725b65cafc
MD5 2067310400ecd5dd5f0b5fd919e33869
BLAKE2b-256 0b5e84304a70340f75d2fa96c4ba6c09648943d64f81521cb002d732c45f008c

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