jsonapy:用于将模型转储为JSON:API格式的Python库 源码
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
下载地址
用户评论