a collection of shared components for graia
Project description
Amnesia
A collection of common components for Graia Project.
于是明天仍将到来.
每一天都会带来新的邂逅, 纵使最终忘却也不会害怕明天到来.
简述
Amnesia 是一系列共用组件的集合, 包含了以下内容:
- 消息链
MessageChain, 沿袭自 Avilla 实现和 Ariadne 部分方法实现; Element基类和Text消息元素实现;Launch API: 程序生命周期管理, 提供准备(prepare), 主线(mainline) 与 清理(cleanup) 三个时间节点; 支持依赖编排;- 轻量化实现的
Service; - 轻量化的内存缓存实现
Memcache, 原版本由 @ProgramRipper 实现, 沿袭自 Avilla; Transport API: 职权分派, 交互主导的网络通信封装;uvicorn: ASGI Runner;starlette: ASGI Application;aiohttp: Http & WebSocket Client.
通过 Amnesia, 我们希望能更加轻量化第三方库的依赖, 并籍此促进社区的发展.
MessageChain可以让 Avilla, Ariadne, Alconna 等共用统一实现, 并使其泛用性扩大;Launch API可以优化应用的启动流程, 适用于Saya或是单纯的Broadcast Control应用;Service使维护和访问资源的流程更加合理;- ...或许还会有更多?
协议
本项目以 MIT 协议开源.
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
graia_amnesia-0.11.1.tar.gz
(20.6 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 graia_amnesia-0.11.1.tar.gz.
File metadata
- Download URL: graia_amnesia-0.11.1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e563024d7f153cbb520dcb0c5d50f54bf3d251f027cd2db6579d4881020cb1c
|
|
| MD5 |
ce4444fc58ead03169ad43408e21984d
|
|
| BLAKE2b-256 |
27834a2d7b4c06214c5add76cb1f057e91b8c5dbed3a28422ca547699540ba4a
|
File details
Details for the file graia_amnesia-0.11.1-py3-none-any.whl.
File metadata
- Download URL: graia_amnesia-0.11.1-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9c02b119aba638de1bffdb45185b27a55a5cd6dd51fc591f3e1b4f2912023b5
|
|
| MD5 |
ab73f7b564fec9323ad13eb21a6a5022
|
|
| BLAKE2b-256 |
51c909953824c44d7fe16227869db493f9e9bd4f2062aec09103cce058d52254
|