Home

Awesome

<p align="center"> <a href="#"> <img src="https://raw.githubusercontent.com/OlivOS-Team/OlivOS/main/resource/OlivOS_EA_SIP.jpg" width="384" height="216" alt=""> </a> </p> <div align="center">

OlivOS

青果核心交互栈
Witness Union / 见证联合

<a href="https://github.com/botuniverse/onebot"> <img src="https://img.shields.io/badge/OneBot-v11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==" alt="action"> </a> <a href="https://github.com/botuniverse/onebot"> <img src="https://img.shields.io/badge/OneBot-v12-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==" alt="action"> </a> <a href="https://github.com/OlivOS-Team/OlivOS/actions"> <img src="https://github.com/OlivOS-Team/OlivOS/actions/workflows/build.yml/badge.svg" alt="action"> </a> <a href="https://pypi.python.org/pypi/olivos"> <img src="https://img.shields.io/pypi/v/olivos" alt="PyPI"> </a> <a href="https://github.com/OlivOS-Team/OlivOS/releases"> <img src="https://img.shields.io/github/downloads/OlivOS-Team/OlivOS/total.svg" alt="Downloads"> </a> <p align="center"> <a href="https://doc.olivos.wiki/">文档</a> · <a href="https://forum.olivos.run/">论坛</a> · <a href="https://github.com/OlivOS-Team/OlivOS/releases">下载</a> · <a href="https://afdian.net/a/OlivOS">赞助</a> </p> </div>

兼容

OnebotV11 OnebotV12 RED QQ NapCat Go-CQHttp Walle-Q WeChat ComWeChatBotClient QQ全域 QQ频道 DingTalk Discord Bilibili Telegram KOOK 大别野 Dodo Fanbook Hack.Chat FF14ACT

排名不分先后

概述

OlivOS 青果核心交互栈,一个将各类涉及异步文本流交互的场景(即时通讯、直播弹幕、网络聊天室、静态命令行应用程序)转换到统一框架,基于统一流量管理、负载均衡、业务处理机制进行服务,以期在这些交互逻辑与功能需求类似的场景获得更加灵活的部署方式更加有效的开发模式以及更加合理的资源调度

方针

技术路线上,基于Python、采用模块化框架、进程分离、消息队列通信、前后端分离、响应式布局、渐进式渲染的基本思路,实现一个高并发性、高可靠性、高适应性的整体方案。

欢迎点击Star,这对我们将带来很大的支持!

Star History Chart

开始使用

发布版本

Windows

我们推荐Windows用户直接使用经过二进制编译的发布版本,你可以在这里获取最新版本:releases

源码版本

请确保你已经安装了Python3以及git,当前我们主要使用3.7.5以及3.11.0两个版本的Python。

git clone https://github.com/OlivOS-Team/OlivOS
cd OlivOS
pip install -r requirements310_pure.txt

对于3.7.5版本的Python,有单独提供的依赖描述文件

pip install -r requirements_pure.txt
python main.py

Pypi版本

OlivOS的核心组件部分已经被充分集成,并作为Pypi库进行了发布,你同样也可以使用pip来获取这个版本并将OlivOS作为库加以使用。
要获取最新版本的OlivOS库,你需要

pip install olivos

以下是一个简单的OlivOS启动示例代码

import OlivOS

if __name__ == '__main__':
    OlivOSTarget = OlivOS.bootAPI.Entity()
    OlivOSTarget.start()

插件

请参考插件默认模板OlivOSPluginTemplate官方文档进行插件开发。

许可证

Copyright (C) 2019-2021 lunzhiPenxil and OlivOS Team and contributors.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

OlivOS 采用 AGPLv3 协议开源。为了整个社区的良性发展,我们强烈建议您做到以下几点(此声明继承自Mirai):

OlivOS 的形象图及项目图标都拥有著作权保护。

在未经过允许的情况下,任何人都不可以使用形象图和图标,或本文初的有关 OlivOS 名称来历的介绍原文,用于商业用途或是放置在项目首页,或其他未许可的行为。

衍生软件需声明引用

特别声明

CSDN旗下GitCode被曝批量搬运Github项目的珠玉在前,本项目特别在此声明,本项目的官方源代码仅在以下平台发布:

任何未经本仓库所属的组织允许的超出以上代码托管平台的冒充行为,都是未授权的,请警惕。