Skip to main content

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'))]

Project details


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.1.1.tar.gz (242.0 kB view details)

Uploaded Source

Built Distribution

dojson-1.1.1-py2.py3-none-any.whl (179.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dojson-1.1.1.tar.gz.

File metadata

  • Download URL: dojson-1.1.1.tar.gz
  • Upload date:
  • Size: 242.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dojson-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3cd3ff3320d199873655dbceeedcdecd2d2579465aa550bb394887abea2fd4f6
MD5 bdd4cf0d9e18441395f937d8b1ba56ba
BLAKE2b-256 97c8d745844e19ed2030d74cf47d830dc3b111b0baea6c5d6a35f1f4f3edb811

See more details on using hashes here.

File details

Details for the file dojson-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dojson-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a33f727609867ef2ab56d0434d5b9579e04e3502cfb53f328a6eff14b58a9344
MD5 739de383af435020dbfd03a80d4a227f
BLAKE2b-256 0a5a9f84185a827769e15cb05901e2c9131bc2d78e974cad4c1b3b7e0dc3071c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page