api-shop

Online Documents
在线文档
api-shop:一个易用的、快速的restful-api接口工具包,兼容:
django/flask/bottle。
一切只为少加班。
demo 图片
核心功能:
- 配置化api生成。
- 自动校验request提交的数据,并转换成指定格式,支持:int,float,list,dict,set,tuple,bool
- 自动生成api文档,并提供一个web页面可供查询和mock数据演示。
- 兼容
django,flask,bottle(如果不指定框架,默认按这个顺序识别框架) - 支持从接口配置生成 OpenAPI 3.0.3 文档。
- 自定义格式转换器,data_format.datetime格式转换类;'2019-01-18 23:25:25' to datetime
- 支持正则格式校验。
- 多国语言支持,也支持自定义语言包。
- 文档热重载。
- 默认值支持方法函数。
- 支持url中包含参数,例如
/api/user/<id>,并且在配置methods参数的时候设置它的规则。 - 支持多url绑定一个接口
- 支持指定参数的可选项,例如:[1,4,7],收到这个列表之外的参数就会触发bad_request
- 可以在代码中直接调用Api业务代码:
api_run(将移除get_api_result_json和get_api_result_response) - 支持在Api类中定义response_docs来制作返回值文档,并支持模型字段引入;以及模型部分字段引入类:ApiResponseModelFields
Online Documents
在线文档
Metadata
Release files for api-shop 1.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| api_shop-1.15.0.tar.gz | 1.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| api_shop-1.15.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.2 MB
Release files / api_shop-1.15.0.tar.gz
| Download URL | api_shop-1.15.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56e1939a6dda60e4685036c30a862c8233a3bbdde025a7fa24086770dbcf27b6
|
|
BLAKE2b-256 checksum How to use checksums |
4545c8f8716b44698be8397ac36c5ad31187f84510ee8ca1991b563050b1e29b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / api_shop-1.15.0-py3-none-any.whl
| Download URL | api_shop-1.15.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee69e03753290c6ded807ace126f19bf074b1db18e8736f28c8c8af5195420c9
|
|
BLAKE2b-256 checksum How to use checksums |
87e9e0199cb9c523e626d0ecb28c753757e8bb02b3a8ef86abd949cc7becba8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Security for api-shop 1.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.