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_server_auth(
phone_number="+555123456789"
)
print('Magic auth start response:', magic_auth_start_response)
# Open the auth URL on user's device (in a real application, you would redirect the user to auth_url)
# Comment this line if you want to run the example without opening the auth URL
async with httpx.AsyncClient(follow_redirects=True) as client:
res = await client.get(magic_auth_start_response.authUrl)
# 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
aiohttpfor async operationsrequestsfor 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
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 glide_sdk-1.0.8.tar.gz.
File metadata
- Download URL: glide_sdk-1.0.8.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.1 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feebf894443d2ae664129898326bb4961b4b3d7aceaad567fc0d2b9c7fabab25
|
|
| MD5 |
b0065d5e4f5214c1ffb191f1077c20f9
|
|
| BLAKE2b-256 |
c518c0f96d5080e8ec3b15529785d1e867093d990cefe6f49a4989fa6c4767ff
|
File details
Details for the file glide_sdk-1.0.8-py3-none-any.whl.
File metadata
- Download URL: glide_sdk-1.0.8-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.1 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78b27ff6b9fa8ba2988104d0adfa009ba3ed920d5abd1c37f3cd1c07a75ebef5
|
|
| MD5 |
a88a8401a03b3715b4775601bc1904ee
|
|
| BLAKE2b-256 |
1258f669e071820fc34b260142fe431f5e9809d84a235413007313c609ebac7f
|