Skip to main content

api-shop PyPI PyPI - Downloads

Online Documents

在线文档

api-shop:一个易用的、快速的restful-api接口工具包,兼容:django / flask / bottle

一切只为少加班。

demo 图片

demo

核心功能:

  1. 配置化api生成。
  2. 自动校验request提交的数据,并转换成指定格式,支持:int,float,list,dict,set,tuple,bool
  3. 自动生成api文档,并提供一个web页面可供查询和mock数据演示。
  4. 兼容 django , flask , bottle (如果不指定框架,默认按这个顺序识别框架)
  5. 支持从接口配置生成 OpenAPI 3.0.3 文档。
  6. 自定义格式转换器,data_format.datetime格式转换类;'2019-01-18 23:25:25' to datetime
  7. 支持正则格式校验。
  8. 多国语言支持,也支持自定义语言包。
  9. 文档热重载。
  10. 默认值支持方法函数。
  11. 支持url中包含参数,例如 /api/user/<id>,并且在配置methods参数的时候设置它的规则。
  12. 支持多url绑定一个接口
  13. 支持指定参数的可选项,例如:[1,4,7],收到这个列表之外的参数就会触发bad_request
  14. 可以在代码中直接调用Api业务代码:api_run(将移除get_api_result_jsonget_api_result_response
  15. 支持在Api类中定义response_docs来制作返回值文档,并支持模型字段引入;以及模型部分字段引入类:ApiResponseModelFields

Online Documents

在线文档

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

api_shop-1.15.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

api_shop-1.15.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file api_shop-1.15.0.tar.gz.

File metadata

  • Download URL: api_shop-1.15.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for api_shop-1.15.0.tar.gz
Algorithm Hash digest
SHA256 56e1939a6dda60e4685036c30a862c8233a3bbdde025a7fa24086770dbcf27b6
MD5 55ab54b62a2830c8a3fc3c0d189f07ee
BLAKE2b-256 4545c8f8716b44698be8397ac36c5ad31187f84510ee8ca1991b563050b1e29b

See more details on using hashes here.

File details

Details for the file api_shop-1.15.0-py3-none-any.whl.

File metadata

  • Download URL: api_shop-1.15.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for api_shop-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee69e03753290c6ded807ace126f19bf074b1db18e8736f28c8c8af5195420c9
MD5 6cf6b1041d710cf40b8dc361e8d9d525
BLAKE2b-256 87e9e0199cb9c523e626d0ecb28c753757e8bb02b3a8ef86abd949cc7becba8d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.15.0 This release

2 files

1.14.1

1 file

1.14

1 file

1.13.3

1 file

1.13.2

1 file

1.12.3

1 file

1.11.0

1 file

1.10.2

1 file

1.10.1

1 file

1.10.0

1 file

1.9.7

1 file

1.9.5

1 file

1.9.4

1 file

1.9.3

1 file

1.9.2

1 file

1.9.1

1 file

1.9.0

1 file

1.8.0

1 file

1.7.3

1 file

1.7.2

1 file

1.7.1

1 file

1.7.0

1 file

1.6.7

1 file

1.6.6

1 file

1.6.5

1 file

1.6.4

1 file

1.6.3

1 file

1.6.2

1 file

1.6.1

1 file

1.6.0

1 file

1.5.0

1 file

1.4.10

1 file

1.4.9

1 file

1.4.8

1 file

1.4.7

1 file

1.4.6

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page