1. 首页
  2. 数据库
  3. 其它
  4. jsonapy:用于将模型转储为JSON:API格式的Python库 源码

jsonapy:用于将模型转储为JSON:API格式的Python库 源码

上传者: 2021-03-06 15:45:59上传 ZIP文件 89.94KB 热度 13次
JSON:APy-在Python中加载和转储JSON:API WIP:该库仍处于早期开发阶段。 jsonapy是一个Python库,用于将模型转储到兼容JSON:API的JSON中。 安装 随着pip : pip install jsonapy 基本用法概述 该软件包可让您定义模型并将其转储为具有JSON:API结构的字典。 首先,定义资源: import jsonapy class PersonResource ( jsonapy . BaseResource ): id : int first_name : str last_name : str c
下载地址
用户评论