aiocqhttp | A Python SDK with async I/O for CQHTTP (OneBot) | Chat library
kandi X-RAY | aiocqhttp Summary
kandi X-RAY | aiocqhttp Summary
aiocqhttp 是 OneBot (原 酷Q 的 CQHTTP 插件) 的 Python SDK,采用异步 I/O,封装了 web 服务器相关的代码,支持 OneBot 的 HTTP 和反向 WebSocket 两种通信方式,让使用 Python 的开发者能方便地开发插件。. 本 SDK 要求使用 Python 3.7 或更高版本,以及建议搭配支持 OneBot v11 的 OneBot 实现。.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Calls an action
- Sends a message to an event
- Append the given object to the end of the segment
- Run async functions
- Handle an HTTP event
- Emit an event
- Handle an event
- Decorate a function to subscribe to events
- Ensure func is async
- Return a plain text representation of the segments
- Create a custom music segment
- Create a new record segment
- Create a new video segment
- Create a share segment
- Decorate a function before event
- Create a Location segment
- Create a music music segment
- Handle message
- Run the server
- Handle group change events
- Decorate a before_sending function
- Make an HTTP request
- Create apis
- Create a new image segment
- Handle a WSR request
- Decorator to register a before event
aiocqhttp Key Features
aiocqhttp Examples and Code Snippets
Community Discussions
Trending Discussions on aiocqhttp
QUESTION
I have my python3 path under /usr/bin
, any my pip path under /.local/bin
of my local repository.
With some pip modules installed, I can run my code successfully through python3 mycode.py
.
But I tried to run the shell script:
...ANSWER
Answered 2020-Aug-22 at 04:37In your case, the aiocqhttp
was installed in your home directory, and when you invoke the script by sudo
, python3
will not be able to know to search in your home (because it is root that is running the process). You may solve it using these two approaches:
Method 1:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aiocqhttp
You can use aiocqhttp like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page