Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

拓展 py-summer #27

@rexyan

Description

@rexyan

本次设计如下:

image

Summer, 提供统一对外的入口。

Plugin, Summer 的父类,在 Plugin 中,主要的功能为处理用户选择不同的 Framework,并从后面 extension 中动态载入相关的 Framework。

extension,功能模块或者 Framework 的拓展。以 FlaskExtension 举例,其中有 create_server 方法创建 application 对象,load_conf 载入配置等。

这样设计降低了耦合性,方便拓展。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions