Client for Discord authorization via qr code
Project description
RemoteAuthClient
Installing
Python 3.7 or higher is required
pip install remoteauthclient
Example
from asyncio import run
from remoteauthclient import RemoteAuthClient
c = RemoteAuthClient()
@c.event("on_fingerprint")
async def on_fingerprint(data):
print(f"Fingerprint: {data}")
print(f"QrCode url: https://api.qrserver.com/v1/create-qr-code/?size=256x256&data={data}")
@c.event("on_userdata")
async def on_userdata(user):
print(f"ID: {user.id}")
print(f"Username: {user.username}")
print(f"Discriminator: {user.discriminator}")
print(f"Avatar hash: {user.avatar}")
print(f"Name: {user.getName()}")
print(f"Avatar URL: {user.getAvatarURL()}")
@c.event("on_token")
async def on_token(token):
print(f"Token: {token}")
@c.event("on_cancel")
async def on_cancel():
print(f"Auth canceled!")
@c.event("on_timeout")
async def on_timeout():
print(f"Timeout")
run(c.run())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
remoteauthclient-1.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for remoteauthclient-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb8f85b6238bec6f660e4a94fba86fbb7b3bc255fc722b2acc1f1c214ac0eb4 |
|
MD5 | 26f7539b627dca203d1567c8a06cac64 |
|
BLAKE2b-256 | 9c7ae3e87f8f6436178c731ff67db809e2feed4d8442d6c53be36adf7693ae2c |