apistellar-1.3.9
توضیحات
enhance apistar web framework.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | apistellar-1.3.9 |
| نام | apistellar |
| نسخه کتابخانه | 1.3.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | cn |
| ایمیل نویسنده | cnaafhvk@foxmail.com |
| آدرس صفحه اصلی | https://www.github.com/ShichaoMa/apistellar |
| آدرس اینترنتی | https://pypi.org/project/apistellar/ |
| مجوز | MIT |
# apistellar WEB框架
## Badge
### GitHub
[](https://github.com/shichao.ma)
[](https://github.com/shichaoma/apistellar)
[](https://github.com/shichaoma/apistellar)
[](https://github.com/shichaoma/apistellar/releases)
[](https://github.com/shichaoma/apistellar)
[](https://github.com/shichaoma/apistellar/releases)
[](https://github.com/shichaoma/apistellar/releases)
### PyPi
[](https://pypi.org/project/apistellar/)
[](https://pypi.org/project/apistellar/)
[](https://pypi.org/project/apistellar/)
[](https://pypi.org/project/apistellar/)
[](https://pypi.org/project/apistellar/)
[](https://pypi.org/project/apistellar/)
## Desc
apistellar是基于apistar的web构建工具,同时增强了apistar的功能,使用apistellar可以轻松构建适合生产环境的web项目。
apistellar部分设计灵感参考ruby on rails
除了apistar本身的特性以外,apistellar增加如下几点高级用法:
1. CSM架构,将控制层,业务层,模型层完全分离,耦合性降至最低。
2. 模板式定制各类模型,轻松扩展模型定义的模板类。
3. 适配sphinx注释语法,使用构建命令一键生成api文档和RPC-client。
4. 集成flask版的session实现。
5. 自带一些event hook,轻松集成异常、session处理。
6. 集成配置模块,集中管理所有配置信息。
7. 离线任务管理,同一web服务下的离线任务,轻松复用web模块定义的model, service等等可注入对象。模板一键创建。
8. 集成IPython交互式命令行工具,自动注入model, service等对象。提供异步代码执行能力,轻松调试各模块。
9. 提供上传文件流对象,对大文件上传完美支持。
10. Apistar作者在uvicorn中提供了websocket支持,但是未集成到apistar中,apistellar对二者进行了集成,完美支持websocket。





## Install
```
# python 3.6+
pip install apistellar
```
## Doc
### 目录
1. [Quick Start](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Quick-Start.md)
2. [apistellar项目组成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/apistellar项目组成.md)
3. [model的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model的使用方法.md)
4. [controller的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/controller的使用方法.md)
5. [service的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/service的使用方法.md)
6. [Session管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Session管理.md)
7. [使用require实现简单session认证](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用require实现简单session认证.md)
8. [增强的EventHook](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/增强的EventHook.md)
9. [错误码处理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/错误码处理.md)
10. [配置信息管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/配置信息管理.md)
11. [自定义项目构建任务](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/自定义项目构建任务.md)
12. [solo任务(离线任务)](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/solo任务(离线任务).md)
13. [使用集成的IPython进行异步代码的调试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用集成的IPython进行异步代码的调试.md)
14. [大文件上传下载](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/大文件上传下载.md)
15. [使用websocket进行通讯](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用websocket进行通讯.md)
16. [使用apistellar测试插件pytest-apistellar进行单元测试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用apistellar测试插件pytest-apistellar进行单元测试.md)
17. [model持久化方案](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model持久化方案.md)
18. [API接口文档自动生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/API接口文档自动生成.md)
19. [RESTFul RPC客户端驱动包一键生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/RESTFul-RPC客户端驱动包一键生成.md)
20. [全局对象](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/全局对象.md)
参考资料
- [asgi web框架 APIStar----终于等到你...](https://zhuanlan.zhihu.com/p/36297606)
- [妈妈再也不用担心我不写文档了,RESTful API文档一键生成!](https://zhuanlan.zhihu.com/p/55784077)
- [RESTful服务构建利器apistellar深度剖析](https://zhuanlan.zhihu.com/p/41843954)
- [asgi协议](https://github.com/django/asgiref/blob/master/specs/www.rst)
نحوه نصب
نصب پکیج whl apistellar-1.3.9:
pip install apistellar-1.3.9.whl
نصب پکیج tar.gz apistellar-1.3.9:
pip install apistellar-1.3.9.tar.gz