Skip to main content

RemixQQ_Python_SDK

给RemixQQ的Httpapi插件写的用于Python的SDK

要不是连API都没有能用的,我何苦自己写SDK啊!!

此SDk是基于MyQQ_Httpapi插件的,此插件的食用方法及下载方法参见RemixQQ官方网站

食用方法

  1. MyQQ_Httpapi的配置方法

    1. 在主界面配置端口号及Token(用于发送消息)
    2. 在“回调”界面配置接收消息用的地址(重要!!!)
  2. 使用pip安装

pip install RemixQQ_Python_SDK
  1. 使用以下代码进行初始化
from http.server import HTTPServer, BaseHTTPRequestHandler
from remixqq_python_sdk.app import App
import json
import urllib.parse
import random
import requests
host = ('localhost', 8082) #接收消息地址(需与上方配置界面一致)
app = App('http://localhost:8081/MyQQHTTPAPI', "Token", "QQ")
class Resquest(BaseHTTPRequestHandler):
    def do_POST(self):
        datas = self.rfile.read(int(self.headers['content-length'])).decode()
        datas = json.loads(datas)
        from_qun = urllib.parse.unquote(datas['MQ_fromID']) #获取消息来源群号
        msg = urllib.parse.unquote(datas['MQ_msg']) #获取消息内容
        # do something
        response = app.send_group_message("123",0,0,"test")
        print(response)

if __name__ == '__main__':
    server = HTTPServer(host, Resquest)
    print("Starting server, listen at: %s:%s" % host)
    server.serve_forever()

TODO:

  1. 将API完整复刻至Python
  2. 实现一个包即可完成消息收发
  3. 建立API文档

Release Note

0.0.1(发布日期:2024年4月26日)

  1. 已完成基础功能
  2. 发布包至PYPI,可使用pip安装
  3. 新增代办:建立API文档

Metadata

Release files for RemixQQ-Python-SDK 20240430171818

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RemixQQ-Python-SDK 20240430171818
File Size Uploaded Provenance Actions
remixqq_python_sdk-20240430171818.tar.gz 5.3 kB Without provenance Details for remixqq_python_sdk-20240430171818.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RemixQQ-Python-SDK 20240430171818
File Interpreter ABI Platform Actions
RemixQQ_Python_SDK-20240430171818-py3-none-any.whl Python 3 none any Details for RemixQQ_Python_SDK-20240430171818-py3-none-any.whl

Total release size: 11.1 kB

Release files / remixqq_python_sdk-20240430171818.tar.gz

Download URL remixqq_python_sdk-20240430171818.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d5c051b6b93396925d2da8c928d9a089a31010e4511a3f66f9639bdcfcb32b12
BLAKE2b-256 checksum
How to use checksums
f882b6312ddc07fbc2e3246a26c023bccfd4626e4fc4044bc7586e678723d723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / RemixQQ_Python_SDK-20240430171818-py3-none-any.whl

Download URL RemixQQ_Python_SDK-20240430171818-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bea66c9a9bfe3c7f0272b77619c25eaa52a56fcd391c8219b2dc276717e563c
BLAKE2b-256 checksum
How to use checksums
16618d400ef1aceb11399550dd6e119e58176c55eb37f0d3ab3e97b6055c6da7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for RemixQQ-Python-SDK 20240430171818

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page