DoJSON is a simple Pythonic JSON to JSON converter.
Project description
========
DoJSON
========
.. currentmodule:: dojson
.. image:: https://img.shields.io/travis/inveniosoftware/dojson.svg
:target: https://travis-ci.org/inveniosoftware/dojson
.. image:: https://img.shields.io/coveralls/inveniosoftware/dojson.svg
:target: https://coveralls.io/r/inveniosoftware/dojson
.. image:: https://img.shields.io/github/tag/inveniosoftware/dojson.svg
:target: https://github.com/inveniosoftware/dojson/releases
.. image:: https://img.shields.io/pypi/dm/dojson.svg
:target: https://pypi-hypernode.com/pypi/dojson
.. image:: https://img.shields.io/github/license/inveniosoftware/dojson.svg
:target: https://github.com/inveniosoftware/dojson/blob/master/LICENSE
About
=====
DoJSON is a simple Pythonic JSON to JSON converter.
Installation
============
DoJSON is on PyPI so all you need is:
.. code-block:: console
$ pip install dojson
Documentation
=============
Documentation is readable at https://pythonhosted.org/dojson/ or
it can be built using Sphinx:
.. code-block:: console
$ pip install dojson[docs]
$ python setup.py build_sphinx
Testing
=======
Running the test suite is as simple as:
.. code-block:: console
$ python setup.py test
Example
=======
A simple example on how to convert MARCXML to JSON:
.. code:: 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
========
.. currentmodule:: dojson
.. image:: https://img.shields.io/travis/inveniosoftware/dojson.svg
:target: https://travis-ci.org/inveniosoftware/dojson
.. image:: https://img.shields.io/coveralls/inveniosoftware/dojson.svg
:target: https://coveralls.io/r/inveniosoftware/dojson
.. image:: https://img.shields.io/github/tag/inveniosoftware/dojson.svg
:target: https://github.com/inveniosoftware/dojson/releases
.. image:: https://img.shields.io/pypi/dm/dojson.svg
:target: https://pypi-hypernode.com/pypi/dojson
.. image:: https://img.shields.io/github/license/inveniosoftware/dojson.svg
:target: https://github.com/inveniosoftware/dojson/blob/master/LICENSE
About
=====
DoJSON is a simple Pythonic JSON to JSON converter.
Installation
============
DoJSON is on PyPI so all you need is:
.. code-block:: console
$ pip install dojson
Documentation
=============
Documentation is readable at https://pythonhosted.org/dojson/ or
it can be built using Sphinx:
.. code-block:: console
$ pip install dojson[docs]
$ python setup.py build_sphinx
Testing
=======
Running the test suite is as simple as:
.. code-block:: console
$ python setup.py test
Example
=======
A simple example on how to convert MARCXML to JSON:
.. code:: 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'))]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dojson-1.2.0.tar.gz
(243.1 kB
view hashes)
Built Distribution
dojson-1.2.0-py2.py3-none-any.whl
(179.0 kB
view hashes)
Close
Hashes for dojson-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566c7a59d81347d48b4b8c272507f6cf3233a72a9313baec6451f1ca2bbfeb58 |
|
MD5 | 0f1bd25b284deb7e8117ed5924339362 |
|
BLAKE2b-256 | 1aa80d5a115d215ee358afbe6ffc24a39bc79f4974f1e39cd271bd7dbb1dd4d0 |