A simple Python wrapper for the lkteam-bancheck API. [MADE BY LK-TEAM]
Project description
LK Ban Checker
A simple Python package to check a user's ban status using the lkteam-bancheck API.
Installation
Install the package using pip:
pip install lk-banchecker```
```py
from lk_banchecker import check_ban
uid_to_check = "12345678"
result = check_ban(uid_to_check)
if "error" in result:
print(f"An error occurred: {result['error']}")
else:
is_banned = result.get('banned', False)
nickname = result.get('nickname', 'N/A')
print(f"Nickname: {nickname}")
print(f"Is Banned: {is_banned}")
if is_banned:
print(f"Ban Message: {result.get('ban_message')}")
# Example of a non-existent UID or error
error_result = check_ban("9999999999999999999")
print(error_result)```
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
lk_banchecker-0.1.0.tar.gz
(3.0 kB
view details)
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 lk_banchecker-0.1.0.tar.gz.
File metadata
- Download URL: lk_banchecker-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4092d0f51f4107959e81ad1087dbce7d3508ea391bc713855795c9d662c94490
|
|
| MD5 |
397f77a7c64053e57b8145b896a59f16
|
|
| BLAKE2b-256 |
f4e64047765dc9d3020700b97cb0ee5f0ea896593b3a0b6bf82e517a7238d4c7
|
File details
Details for the file lk_banchecker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lk_banchecker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2950ac328c6d2500a3d98c7d424e96f5ee23a12ffa6df45ccf9648f22ddb237
|
|
| MD5 |
e152286dff658ca11d5941bfeaa3a0a8
|
|
| BLAKE2b-256 |
bb63dad00709be1b96d8eee792f00a3bfa7df2e90f1c8718aeb7ca279cf6b4af
|