RPC 모듈 - @ZEV 가 만든 파이썬 유일한 디스코드 rpc
Project description
Vendy RPC Modules
Discord RPC 모듈 - WebSocket을 통한 RPC 관리
설치
pip install vendy-rpc
사용법
기본 사용
from Vendy_RPC_modules import RPCManager, RPCConfig, RPCUser
# 설정
CONFIG: RPCConfig = {
"RESTART_INTERVAL_MS": 10 * 60 * 1000, # 10분
"STATUS_CHECK_INTERVAL_MS": 60 * 1000, # 1분
"LOGIN_RETRIES": 3,
"LOGIN_RETRY_DELAY_MS": 5000,
}
# 사용자 데이터
USERS: list[RPCUser] = [
{
"userID": "YOUR_USER_ID",
"token": "YOUR_DISCORD_TOKEN",
"name": "사용자 이름",
"type": "PLAYING",
"state": "상태 텍스트",
"details": "상세 정보",
"large_image": "",
"largete": "",
"small_image": "",
"smallte": "",
"button1": "",
"button1link": "",
"button2": "",
"button2link": "",
},
]
# 실행
if __name__ == "__main__":
manager = RPCManager(config=CONFIG, users=USERS)
manager.run()
기능
- WebSocket을 통한 RPC
- 여러 클라이언트 동시 관리
- 자동 재시작 기능
- 상태 확인 루프
- 로그인 재시도 로직
요구사항
- Python 3.7 이상
- websocket-client >= 1.6.0
라이선스
MIT License
기여
이슈 및 풀 리퀘스트를 환영합니다!
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
vendy_rpc-1.0.1.tar.gz
(10.1 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 vendy_rpc-1.0.1.tar.gz.
File metadata
- Download URL: vendy_rpc-1.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd15131f6b66798d6292c507c1db701e38bce6dd30ccc6c95440efde31587950
|
|
| MD5 |
c3831000fa357f79edd7918cda86e466
|
|
| BLAKE2b-256 |
612d6f3b38b57d57967892f1f0474015c7cfbbaf12a3e026fa9ff2caa0f4481b
|
File details
Details for the file vendy_rpc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vendy_rpc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13cd2b7f7d45099f4d0385c76655ea52a81c61bd644fe2d5f7d77f3db4a201d8
|
|
| MD5 |
c859f27ad634c028f23a2ea93ceec6d0
|
|
| BLAKE2b-256 |
8c591f5cc8f83aef00134ddf3ccb7a30347c0d92f3b3d0f985e1f5fa354a6480
|