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://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.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://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.1.tar.gz
(246.5 kB
view details)
Built Distribution
dojson-1.2.1-py2.py3-none-any.whl
(185.0 kB
view details)
File details
Details for the file dojson-1.2.1.tar.gz
.
File metadata
- Download URL: dojson-1.2.1.tar.gz
- Upload date:
- Size: 246.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1172ef5f29af7499ec06625552207c81f30a0a7a35a6d35f09f618f1c27114bc |
|
MD5 | 8779176038653942995dfa34f38124ac |
|
BLAKE2b-256 | 134d439d2e1e975d77bacfd5c6185eeebb08f11d94842ef7ff95f48ba22c21e5 |
File details
Details for the file dojson-1.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dojson-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 185.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0bfa570b737b5b522d728b11c237d8bc438a3d7c328d10f194bf200e1b43a1d |
|
MD5 | 07dc1bc6ed1cbfb520e5af8deda5bb19 |
|
BLAKE2b-256 | f573570dc1c5bcfb439fa5b128cf632f9ced53cd4d8e78bc7ec82adde9bea847 |