Skip to main content

Amnesia

A collection of common components for Graia Project.

于是明天仍将到来.

每一天都会带来新的邂逅, 纵使最终忘却也不会害怕明天到来.

PyPI code_style

简述

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 协议开源.

Metadata

Release files for graia-amnesia 0.11.5

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

Source distribution (sdist)

Source distribution for graia-amnesia 0.11.5
File Size Uploaded
graia_amnesia-0.11.5.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graia-amnesia 0.11.5
File Interpreter ABI Platform
graia_amnesia-0.11.5-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 kB

Release files / graia_amnesia-0.11.5.tar.gz

Download URL graia_amnesia-0.11.5.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5cb3ff867205e1ee40dbb71499eb55a1d1475a642d77abddd732b2feb30d8350
BLAKE2b-256 checksum
How to use checksums
bf0e8c1906e8d6d53e365dd8c72636e5fe1fa5a39b5df537893b15e3f89bb593
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / graia_amnesia-0.11.5-py3-none-any.whl

Download URL graia_amnesia-0.11.5-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
454e58ac34a08d256a83b98bee44eaa64378d5438572914ebf15a00b25f7e67f
BLAKE2b-256 checksum
How to use checksums
117a086e66e76fde0a9b8a28116c4ab950800a3c66dd44991e8b0ea807424e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.11.5 This release

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.0.1

2 release files

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