dojson是一个简单的pythonic json到json转换器。
dojson的Python项目详细描述
===
dojson
==
…当前模块::dojson
…图片::https://img.shields.io/travis/inveniosoftware/dojson.svg
:目标:https://travis ci.org/inveniosoftware/dojson
…图片::https://img.shields.io/coveralls/inveniosoftware/dojson.svg
:目标:https://coveralls.io/r/inveniosoftware/dojson
…图片::https://img.shields.io/github/tag/inveniosoftware/dojson.svg
:目标:https://github.com/inveniosoftware/dojson/releases
图片::https://img.shields.io/pypi/dm/dojson.svg
:目标:https://pypi.python.org/pypi/dojson
…图片::https://img.shields.io/github/license/invenosoftwware/dojson.svg
:target:https://github.com/invenosoftwware/dojson/blob/master/license
关于
===
>安装
======br/>
。代码块::console
$pip install dojson
documentation
==
documentation可以在https://dojson.readthedocs.io/或
使用sphinx构建:
。代码块::console
$pip install dojson[docs]
$python setup.py build_sphinx
测试
==
运行测试套件非常简单:
。代码块::console
$python setup.py test
示例
=
关于如何将marcxml转换为json的简单示例:
……代码::python
from dojson.contrib.marc21.utils import create_record,split_stream
from dojson.contrib.marc21 import marc21
[marc21.do(create_record(data))for data in split_stream(open('/tmp/data.xml','r'))]
dojson
==
…当前模块::dojson
…图片::https://img.shields.io/travis/inveniosoftware/dojson.svg
:目标:https://travis ci.org/inveniosoftware/dojson
…图片::https://img.shields.io/coveralls/inveniosoftware/dojson.svg
:目标:https://coveralls.io/r/inveniosoftware/dojson
…图片::https://img.shields.io/github/tag/inveniosoftware/dojson.svg
:目标:https://github.com/inveniosoftware/dojson/releases
图片::https://img.shields.io/pypi/dm/dojson.svg
:目标:https://pypi.python.org/pypi/dojson
…图片::https://img.shields.io/github/license/invenosoftwware/dojson.svg
:target:https://github.com/invenosoftwware/dojson/blob/master/license
关于
===
>安装
======br/>
。代码块::console
$pip install dojson
documentation
==
documentation可以在https://dojson.readthedocs.io/或
使用sphinx构建:
。代码块::console
$pip install dojson[docs]
$python setup.py build_sphinx
测试
==
运行测试套件非常简单:
。代码块::console
$python setup.py test
示例
=
关于如何将marcxml转换为json的简单示例:
……代码::python
from dojson.contrib.marc21.utils import create_record,split_stream
from dojson.contrib.marc21 import marc21
[marc21.do(create_record(data))for data in split_stream(open('/tmp/data.xml','r'))]