Kim:一个jsON序列化和编组Python框架(python json序列化)

网友投稿 1062 2022-10-11

Kim:一个JSON序列化和编组Python框架(python json序列化)

Kim:一个JSON序列化和编组Python框架(python json序列化)

Kim: A JSON Serialization and Marshaling framework

Introducing Kim:

.. code-block:: python

>>> mapper = UserMapper(data=response.json())>>> mapper.marshal()User(id='one', name='Bruce Wayne', 'title'='CEO/Super Hero')>>> user_two = User.query.get('two')>>> mapper = UserMapper(obj=user_two)>>> mapper.serialize(){u'id': 'two', u'name': 'Martha Wayne', 'title': 'Mother of Batman'}

Kim Features

Kim is a feature packed framework for handling even the most complex marshaling and serialization requirements.

Web framework agnostic - Flask, Django, Framework-XXX supported!Highly customisable field processing systemSecurity focusedControl included fields with powerful roles systemHandle mixed data types with polymorphic mappersMarshal and Serialize nested objects

Kim officially supports Python 2.7 & 3.3–3.5

Installation

Install Kim using pip:

.. code-block:: bash

$ pip install py-kim

Documentation

Learn all of Kim's features with these simple step-by-step instructions or check out the quickstart guide for a rapid overview to get going quickly.

http://kim.readthedocs.io/en/latest/

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Redis下载安装教程-Windows版本(详细)
下一篇:线上紧急hotfix复盘
相关文章

 发表评论

暂时没有评论,来抢沙发吧~