Skip to main content
========
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'))]

Metadata

Release files for dojson 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dojson 1.2.0
File Size Uploaded
dojson-1.2.0.tar.gz 243.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dojson 1.2.0
File Interpreter ABI Platform
dojson-1.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 422.1 kB

Release files / dojson-1.2.0.tar.gz

Download URL dojson-1.2.0.tar.gz
Size 243.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab46472b80a6bebf493cc29a3defd93c46ede1c57764e3ac5935bd5749aa5424
BLAKE2b-256 checksum
How to use checksums
d709e7e1bd43913b3f4d7d346ec0dec9583cd2d998075fd0017c459db854e132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dojson-1.2.0-py2.py3-none-any.whl

Download URL dojson-1.2.0-py2.py3-none-any.whl
Size 179.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
566c7a59d81347d48b4b8c272507f6cf3233a72a9313baec6451f1ca2bbfeb58
BLAKE2b-256 checksum
How to use checksums
1aa80d5a115d215ee358afbe6ffc24a39bc79f4974f1e39cd271bd7dbb1dd4d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page