semvec/pypi-packages huggingface dataset:
gbind-info 1.0.2
A professional and secure SDK to check Garena account binding information
License: MIT
Requires Python: >=3.8
Keywords: garena, api, sdk, account-security, bind, Bind-info

Garena Bind Info SDK 🚀

gbind-info is a powerful and secure Python library designed to help developers easily retrieve binding information (current email, pending email, and request countdown) for Garena accounts.

Features ✨
Secure Requests: Automatically rotates User-Agents to prevent request blocking and detection.
Human-Readable Time: Converts raw countdown seconds into an easy-to-read Day Hour Min Sec format.
Session Management: Utilizes requests.Session for faster performance and persistent connections.
Developer Friendly: Clean API design that can be integrated into Flask, Django, or standalone scripts in seconds.


installation 🛠️
Install the library via pip:
pip install gbind_info


Quick Start 💻
Here is a simple example of how to use the library in your project:

```python```
from gbind_info import InfoClient

# Initialize the client
client = InfoClient()

# Provide the Garena Access Token
ACCESS_TOKEN = "YOUR_GARENA_ACCESS_TOKEN"

# Fetch binding data
result = client.get_bind_info(ACCESS_TOKEN)

if result["status"] == "success":
    print(f"Summary: {result['summary']}")
    print(f"Current Email: {result['data']['current_email']}")
    print(f"Human Countdown: {result['data']['countdown_human']}")
else:
    print(f"Error: {result['message']}")


API Response Structure 📊
The library returns a structured dictionary for every request:

```json```
{
    "status": "success",
    "data": {
        "current_email": "user***@gmail.com",
        "pending_email": "new***@gmail.com",
        "countdown_human": "6 Day 23 Hour 59 Min 50 Sec",
        "raw": { "original_api_response_here": "..." }
    },
    "summary": "Pending email confirmation: new***@gmail.com - Confirms in: 6 Day 23 Hour ..."
}


Technical Workflow


Security & Disclaimer 🛡️

This library is intended for educational and research purposes only. Accessing account information without explicit permission may violate Garena's Terms of Service. The developer is not responsible for any misuse, account bans, or legal issues resulting from the use of this software. Use it responsibly.


License 📄

Distributed under the MIT License. See LICENSE for more information.
MikuChatSDK 0.3.0
Python 3 SDK for MikuChat. Check https://doc.yuuz12.top/web/#/5/ 
License: MIT
Requires Python: >=3.11
Keywords: mikuchat, shiruku, yuuz12

# MikuChat-Api
> 详细接口调用文档地址: https://doc.yuuz12.top/web/#/5/103

## 简介
全异步编写，可调用 MikuChat-Api

推荐使用 uv 包管理器安装：`uv add MikuChatSDK`

## 使用说明
1. 在项目根目录下新建 `.env` 文件，并在其中填写环境变量：
```env
MIKUCHAT_API_VERSION=2  # API 版本，可不填，默认为 2
MIKUCHAT_API_KEY='{
    "1": your_key_v1,   # v1 API 密钥
    "2": your_key_v2,   # v2 API 密钥
}'
```
2. 请使用 `httpx` 库进行 API 异步调用
3. 传入初始化 client 实例化 API 类，并调用对应的 API：

```python
import asyncio
import httpx
from mikuchat.apis import User
from mikuchat.models import ResponseModel, UserModel


async def main():
    async with httpx.AsyncClient() as client:
        """实例化 API 类"""
        user = User(client=client)
        # 若 API 版本为 v1:
        # user = User(client, version=1)

        """调用 API 方法，需显示传入关键字参数"""
        await user.get_user_info(qq=1234567)

        """获取 API 响应体"""
        user.response: httpx.Response

        """获取 API 二进制返回信息，如返回图片的 API 可通过此属性获取图片二进制内容"""
        user.raw: bytes

        """获取 API 响应是否出错，仅能判断对 API 的调用是否出错，不能判断网络请求本身是否出错"""
        user.error: bool

        """以下值仅在该 API 有 json 格式返回信息时才有意义，否则均为 None 或空字典"""
        """获取 API json 格式返回信息，默认为空字典"""
        user.raw_data: dict

        """获取 API json 格式返回信息中的具体数据，如 get_user_info 返回数据中的 'user' 键对应值，默认为空字典"""
        user.data: dict | list

        """获取 API json 格式返回信息中的响应代码，默认为 None"""
        user.raw_code: int

        """获取 API json 格式返回信息中的响应信息，默认为 None"""
        user.raw_msg: str
        
        """获取 API json 格式返回信息经映射得到的统一响应模型"""
        user.model: ResponseModel
        
        """具体 API 的数据模型，均为响应模型的成员变量，通常为 API 类名的蛇形命名格式"""
        user.model.user: UserModel


if __name__ == "__main__":
    asyncio.run(main())
```
4. 使用示例:

```python
"""调用随机选择回声洞中回声信息"""
import asyncio
import httpx
from datetime import date
from mikuchat.apis import Cave
from mikuchat.models import CaveModel


async def main():
    async with httpx.AsyncClient() as client:
        cave = Cave(client=client)
        await cave.get_cave()

    cave_model: CaveModel = cave.model.cave
    qq: int = cave_model.qq
    string: str = cave_model.string
    time: date = cave_model.time


if __name__ == '__main__':
    asyncio.run(main())
```

```python
"""获取签到图片二进制信息"""
import asyncio
import httpx
from mikuchat.apis import UserCheck
from mikuchat.models import UserModel


async def main():
    async with httpx.AsyncClient() as client:
        check = UserCheck(client=client)
        await check.get(qq=1234567, favorability=1, coin=5)

    image_binary: bytes = check.raw


if __name__ == '__main__':
    asyncio.run(main())
```