Eave

Latest version: v0.1.3

Safety actively analyzes 621469 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.3

- 调整了文档模板,适配手机屏幕

0.1.2

- `UriParam` 改为 `PathParam`
- api 中的 `uri` 改为 `url`
- api 中的`uri_params` 改为 `path_params`
- api 中的 `path_params` `query_params` `body_params` 统一为 `params`
- `path_params` `query_params` `body_params` 现在作为 `property` 出现
- 文档底部增加打印按钮
- api 中添加 `make_body_example` 功能,可根据 `body_params` 生成简单示例
- 添加单元测试 `test.py`
- utils 中添加支持 `openapi` 导入功能
- utils 中不再支持 `raml`

`0.1.x` 与前版本 `0.0.x` 不兼容

0.0.16

添加了可以根据 django-rest-framework 的代码自动生成 Api 对象的功能

python
from eave.utils import auto_drf_apis
api_list, api_post, api_detail, actions = auto_drf_apis('用户', '/api/users/', UserViewSet)
doc.add_apis(api_list, api_post, api_detail, *actions)

0.0.15

可以自定义 template

0.0.14

- Doc 中添加了 ending 变量,用作结尾部分
- 可自定义 template

0.0.5

A Restful Api Document Builder

python
pip install eave
from eave import Doc
Doc().build()

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.