Skip to main content

DoJSON is a simple Pythonic JSON to JSON converter.

Project description

https://github.com/inveniosoftware/dojson/workflows/CI/badge.svg https://img.shields.io/coveralls/inveniosoftware/dojson.svg https://img.shields.io/github/tag/inveniosoftware/dojson.svg https://img.shields.io/pypi/dm/dojson.svg https://img.shields.io/github/license/inveniosoftware/dojson.svg

About

DoJSON is a simple Pythonic JSON to JSON converter.

Installation

DoJSON is on PyPI so all you need is:

$ pip install dojson

Documentation

Documentation is readable at https://dojson.readthedocs.io/ or it can be built using Sphinx:

$ pip install dojson[docs]
$ python setup.py build_sphinx

Testing

Running the test suite is as simple as:

$ python setup.py test

Example

A simple example on how to convert MARCXML to JSON:

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dojson-1.7.1-py2.py3-none-any.whl (245.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: dojson-1.7.1.tar.gz
  • Upload date:
  • Size: 169.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for dojson-1.7.1.tar.gz
Algorithm Hash digest
SHA256 83f5d0d98648000c1374dd90422cca6c4ef43dc70a76b6309b313962bea3cfbe
MD5 54e5562c08418267c2d210301932f4bc
BLAKE2b-256 559cc1fcff79064101ed13b1540d558a7384cfee86d2c6a3e9a1125ae8f3a2ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dojson-1.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 245.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for dojson-1.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7fe6906241902059fd2d27911fe858794fb723c97ce938e1b096faaf04a57c63
MD5 ae4497b4ad854f1b339cdda0a2abe811
BLAKE2b-256 591c449ee38ef6a4a0f9d7657f5c7b4a99306d8df26d9705f2a47e6bbb6f76d2

See more details on using hashes here.

Supported by

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