Skip to main content

Official Python SDK for VexaAuth - Modern Authentication & License Management

Project description

VexaAuth Python SDK

PyPI version License: MIT

Official Python SDK for VexaAuth - The modern, secure, and easy-to-use authentication & license management system.

🚀 Features

  • License Management: Verify, activate, deactivate, and redeem licenses.
  • User Authentication: Secure login, registration, and session management.
  • 2FA Support: Enable, verify, and manage Two-Factor Authentication.
  • User Variables: Store and retrieve custom user data (cloud variables).
  • File Management: Securely upload and download files with license restrictions.
  • Online Users: Track and manage connected users in real-time.

📦 Installation

Install the package via pip:

pip install vexa-auth

🛠️ Quick Start

Initialization

from VexaAuth import VexaAuthClient

# Initialize with your API Key
client = VexaAuthClient(api_key="your_api_key_here")

License Verification

# Verify a license key
result = client.verify_license(
    license_key="XXXX-XXXX-XXXX-XXXX",
    hwid="user-hwid-123"  # Optional: Hardware ID for device locking
)

if result.get('valid'):
    print(f"License is valid! Type: {result['type']}")
else:
    print(f"Invalid license: {result.get('message')}")

User Login

try:
    user = client.login(
        username="user@example.com",
        password="secure_password",
        hwid="user-hwid-123"
    )
    print(f"Welcome back, {user['username']}!")
    print(f"Session Token: {user['token']}")
except Exception as e:
    print(f"Login failed: {e}")

Cloud Variables

Store custom data for your users securely in the cloud.

# Set a variable
client.set_user_variable("theme", "dark_mode")

# Get a variable
theme = client.get_user_variable("theme")
print(f"User theme: {theme['value']}")

File Handling

Securely download files restricted to valid license holders.

try:
    response = client.download_file(
        file_id="file_123",
        app_id="app_123",
        app_secret="secret_123",
        license_key="XXXX-XXXX-XXXX-XXXX"
    )
    
    with open("update.zip", "wb") as f:
        f.write(response.content)
    print("Download complete!")
except Exception as e:
    print(f"Download failed: {e}")

📚 Documentation

For full API documentation and advanced usage, please visit our official documentation.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

vexa_auth-1.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

vexa_auth-1.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file vexa_auth-1.0.1.tar.gz.

File metadata

  • Download URL: vexa_auth-1.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for vexa_auth-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bcdba5aa730c6e74eadae8e7470ac5c98b7e68417e64ba98bbea0434c1de04d2
MD5 9a1483be604940940a73cd9742e4dcae
BLAKE2b-256 4e5f86a73094981320c52b5023ec71a812c6b375e90ca8281c0a4478490394e1

See more details on using hashes here.

File details

Details for the file vexa_auth-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vexa_auth-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for vexa_auth-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 545710cee4a69d6f57b89cfca826b46da1ccd1689898becbf9519c875ba02eda
MD5 a18a6d37ef6f06550805f9e48513998f
BLAKE2b-256 580c75df2ebeeeccc1234a8b1470a6f4d18ab43a78e1da18cf5dfeafd7af88d6

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