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.python.org/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://dojson.readthedocs.io/ 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.python.org/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://dojson.readthedocs.io/ 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.3.2.tar.gz
(296.2 kB
view details)
Built Distribution
dojson-1.3.2-py2.py3-none-any.whl
(252.7 kB
view details)
File details
Details for the file dojson-1.3.2.tar.gz
.
File metadata
- Download URL: dojson-1.3.2.tar.gz
- Upload date:
- Size: 296.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7433040815a7d0fa471e09dfaeaf3238b7e9cec94478e03f683bcb95294e30a |
|
MD5 | c6740f0b772fb86eb36a1c47a6469b89 |
|
BLAKE2b-256 | 6c3aa7fed566535cf727d01cc1dd70506d1b980d355b47eea703d82478db56ed |
File details
Details for the file dojson-1.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: dojson-1.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 252.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c27331b738564c4dacf098ca8731e1ce824a88ee9f9e526336f4d7bc83c26b9 |
|
MD5 | 52ce33c0a4e2a95f7cd36d991154e031 |
|
BLAKE2b-256 | 45d63b0fc96b1b6fa034dc7c264bb5a3a8506df708eee04e7d9854f0f0a057e7 |