Skip to main content

Package for the Authify.biz API

Project description

Authify Python API Wrapper

This is the official Python API Wrapper for Authify.

Login User


from authify import api
import os


auth_instance = api("program version", "program key", "program api/encryption key")
auth_instance.init()

option = int(
    input('Press 1 to start')
)


if option == 1:

    _user = input('write your username >> ')

    _pass = input('now write your password >> ')

    if auth_instance.login(_user, _pass):
        user_data = auth_instance.user_data

        print(user_data.username)

        print(user_data.email)

        print(user_data.expires)

        print(user_data.var)

        print(user_data.rank)
    else:
        print('Error')
else:
    print('not available option')

Register User


from authify import api
import os


auth_instance = api("program version", "program key", "program api/encryption key")
auth_instance.init()

option = int(
    input('Press 1 to start')
)

if option == 1:

    _user = input('write your username >> ')

    _email = input('now write your email >> ')

    _pass = input('now write your password >> ')

    _token = input('now your token!! >> ')

    if auth_instance.register(_user, _email, _pass, _token):
        print('registered successfully!!')
    else:
        print('Error')
else:
    print('not available option')

Activate User Sub


from authify import api
import os


auth_instance = api("program version", "program key", "program api/encryption key")
auth_instance.init()

option = int(
    input('Press 1 to start')
)


if option == 1:

    _user = input('write your username >> ')
    _token = input('now, write your token >> ')


    if auth_instance.activate(_user, _token):
        print('activated successfully!!')
    else:
        print('Error')
else:
    print('not available option')

All in one


from authify import api
import os


auth_instance = api("program version", "program key", "program api/encryption key")
auth_instance.init()

option = int(
    input('Press 1 to start')
)

if option == 1:

    _token = input('write your token >> ')


    if auth_instance.all_in_one(_token):
        user_data = auth_instance.user_data

        print(user_data.username)

        print(user_data.email)

        print(user_data.expires)

        print(user_data.var)

        print(user_data.rank)
    else:
        print('Error')
else:
    print('not available option')

Complete Setup


#pip install Authify==0.0.2
from Authify import api

import os


def watermark():
    os.system('cls')
    print('--> Authify Example <--')


auth_instance = api("VERSION", "PROGRAM KEY", "API ENC KEY")

auth_instance.init()

watermark()

option = int(
    input('write your option : \n1) Login\n2) Register\n3) Activate\n4) All In One\n')
)

if option == 1:
    watermark()

    _user = input('write your username : ')

    watermark()

    _pass = input('now write your password : ')

    watermark()

    if auth_instance.login(_user, _pass):
        user_data = auth_instance.user_data

        print(user_data.username)

        print(user_data.email)

        print(user_data.expires)

        print(user_data.var)

        print(user_data.rank)
    else:
        print(':ddd !!!')

elif option == 2:
    watermark()

    _user = input('write your username : ')

    watermark()

    _email = input('now write your email : ')

    watermark()

    _pass = input('now write your password : ')

    watermark()

    _token = input('now your token!! : ')

    watermark()

    if auth_instance.register(_user, _email, _pass, _token):
        print('registered successfully!!')
    else:
        print(':(((')

elif option == 3:
    watermark()

    _user = input('write your username : ')

    watermark()

    _token = input('now, write your token : ')

    watermark()

    if auth_instance.activate(_user, _token):
        print('activated successfully!!')
    else:
        print(':(((')

elif option == 4:
    watermark()

    _token = input('write your token : ')

    watermark()

    if auth_instance.all_in_one(_token):
        user_data = auth_instance.user_data

        print(user_data.username)

        print(user_data.email)

        print(user_data.expires)

        print(user_data.var)

        print(user_data.rank)
    else:
        print(':ddd !!!')
else:
    print('not available option')

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

Authify-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

Authify-0.0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file Authify-0.0.4.tar.gz.

File metadata

  • Download URL: Authify-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for Authify-0.0.4.tar.gz
Algorithm Hash digest
SHA256 52d5f98e3b92062811d655f49e71b7424851f41b60a1d490b72838ae6e7f5e26
MD5 524b030aaf5f4a0f8f82d6c5d9419a93
BLAKE2b-256 9685132fdfb2faa33856c07aad66e93ee8264dcf4059451b8de27fcc3b3b0893

See more details on using hashes here.

File details

Details for the file Authify-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Authify-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for Authify-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2374b63f61b672533b36758d608e7a95cd6103d210f4336692513cbaed6b9f3
MD5 7a449d77ad2a639a5921acbecc4669c4
BLAKE2b-256 b6f3d8523b6590ebd1920ff4c951ac4cb94c117f7b390e5abf38206badc84419

See more details on using hashes here.

Supported by

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