You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

apistellar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apistellar

enhance apistar web framework.

1.3.12
pipPyPI
Maintainers
1

apistellar WEB框架

Badge

GitHub

GitHub followers GitHub repo size in bytes GitHub stars GitHub release Github commits (since latest release)

Github All Releases GitHub Release Date

PyPi

PyPI PyPI - Wheel PyPI - Python Version PyPI - Format PyPI - Implementation PyPI - Status

Desc

apistellar是基于apistar的web构建工具,同时增强了apistar的功能,使用apistellar可以轻松构建适合生产环境的web项目。

apistellar部分设计灵感参考ruby on rails

除了apistar本身的特性以外,apistellar增加如下几点高级用法:

  • CSM架构,将控制层,业务层,模型层完全分离,耦合性降至最低。
  • 模板式定制各类模型,轻松扩展模型定义的模板类。
  • 适配sphinx注释语法,使用构建命令一键生成api文档和RPC-client。
  • 集成flask版的session实现。
  • 自带一些event hook,轻松集成异常、session处理。
  • 集成配置模块,集中管理所有配置信息。
  • 离线任务管理,同一web服务下的离线任务,轻松复用web模块定义的model, service等等可注入对象。模板一键创建。
  • 集成IPython交互式命令行工具,自动注入model, service等对象。提供异步代码执行能力,轻松调试各模块。
  • 提供上传文件流对象,对大文件上传完美支持。
  • Apistar作者在uvicorn中提供了websocket支持,但是未集成到apistar中,apistellar对二者进行了集成,完美支持websocket。

apistellar项目web请求流程图 apistellar项目微服务及中间件调用解决方案示意图 apistellar项目控制层类图 apistellar项目构建工具设计类图 apistellar项目经典三层架构时序图

Install

# python 3.6+
pip install apistellar

Doc

目录

参考资料

Keywords

apistar

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts