Skip to main content

Python SDK for Glide Identity API

Project description

Glide SDK for Python

A powerful Python SDK for integrating Glide's identity verification and fraud prevention services into your applications.

Features

  • Magic Auth: Passwordless authentication using phone numbers or email
  • Number Verification: Verify phone numbers and detect potential fraud
  • SIM Swap Detection: Check for recent SIM card changes to prevent fraud
  • Telco Finder: Get detailed information about phone numbers' carriers

Installation

pip install glide_sdk

Quick Start

# Example of using the Magical Auth
import asyncio
import httpx

from glide_sdk import GlideClient

async def main():
    # Initialize the client (will use .env)
    glide = GlideClient()
    
    # Start magic auth process
    magic_auth_start_response = await glide.magic_auth.start_auth(
        phone_number="+555123456789"
    )
    
    # Get token from auth URL
    async with httpx.AsyncClient(follow_redirects=True) as client:
        res = await client.get(magic_auth_start_response.authUrl)
        token = res.headers.get("token")
    
    # Verify the auth
    magic_auth_check_response = await glide.magic_auth.verify_auth(
        phone_number="+555123456789",
        token=token
    )
    print('Magic auth response:', magic_auth_check_response)

if __name__ == "__main__":
    asyncio.run(main()) 

Features in Detail

Magical Auth

Implement secure, passwordless authentication using phone numbers or email addresses. Supports:

  • Phone number authentication
  • Email authentication
  • Custom redirect URLs
  • Multiple verification channels

Number Verification

Verify phone numbers and detect potential fraud with features like:

  • Real-time number verification
  • Fraud risk assessment
  • Support for international numbers
  • Hashed number verification

SIM Swap Detection

Protect against SIM swap attacks with:

  • Real-time SIM change detection
  • Historical SIM change data
  • Configurable detection windows

Telco Finder

Get detailed carrier information:

  • Carrier name and ID
  • Country information
  • MCC/MNC codes
  • Network type detection

Requirements

  • Python 3.10 or higher
  • aiohttp for async operations
  • requests for HTTP operations
  • Valid Glide API credentials

Documentation

For detailed documentation, visit https://docs.gateway-x.io/

License

MIT License

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

glide_sdk-1.0.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

glide_sdk-1.0.4-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file glide_sdk-1.0.4.tar.gz.

File metadata

  • Download URL: glide_sdk-1.0.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/22.6.0

File hashes

Hashes for glide_sdk-1.0.4.tar.gz
Algorithm Hash digest
SHA256 19dbe77e90b6c1f5621c683ac10ac0b46e8a035454ed30e196d326017b13c1dd
MD5 c7318d20a9a55afcf2211ecaa9b8c386
BLAKE2b-256 cf00b41d2bec4f87c15b5e0064f65a67f80bfc43a9d7239c9904ab0cf917a2c4

See more details on using hashes here.

File details

Details for the file glide_sdk-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: glide_sdk-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/22.6.0

File hashes

Hashes for glide_sdk-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2790d6b2e706f059320c1d0e8392fd1a9538ee48076a843577f1f63335b4f2d4
MD5 d20e09a204b13f6c0e26b294b62e9a8b
BLAKE2b-256 2b3c6f3c00d5d83bd825ef35d8edeecf4f411c6580ba4003c662c523b7181c1a

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