diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-apistellar.spec | 324 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 326 insertions, 0 deletions
@@ -0,0 +1 @@ +/apistellar-1.3.12.tar.gz diff --git a/python-apistellar.spec b/python-apistellar.spec new file mode 100644 index 0000000..81d0dd4 --- /dev/null +++ b/python-apistellar.spec @@ -0,0 +1,324 @@ +%global _empty_manifest_terminate_build 0 +Name: python-apistellar +Version: 1.3.12 +Release: 1 +Summary: enhance apistar web framework. +License: MIT +URL: https://www.github.com/ShichaoMa/apistellar +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a9/33/e44de8af23c2c3c3f1a2f92847aeba4c329e5edd1720bd22b3119fbd3320/apistellar-1.3.12.tar.gz +BuildArch: noarch + + +%description +# 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) + +%package -n python3-apistellar +Summary: enhance apistar web framework. +Provides: python-apistellar +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-apistellar +# 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) + +%package help +Summary: Development documents and examples for apistellar +Provides: python3-apistellar-doc +%description help +# 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) + +%prep +%autosetup -n apistellar-1.3.12 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-apistellar -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.12-1 +- Package Spec generated @@ -0,0 +1 @@ +4c65676547ab158a1a1ffbc8cfc8327f apistellar-1.3.12.tar.gz |
