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.0.tar.gz (305.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.0-py2.py3-none-any.whl (252.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for dojson-1.7.0.tar.gz
Algorithm Hash digest
SHA256 6c61f7a70d2fcf3f5e37026ce6ba82955cffa712a4335d3547fcb6b719a3fc5b
MD5 ad6ad97b33e17b3f109a28b2b0078755
BLAKE2b-256 15c6684b58d987adbcae8ffce847c67ae06401012bf1f4efc545e86482697355

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dojson-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6e07d94f6c4dc7d7dbb417e9c9bb03a0a3b7d1157c5f794b2995b4fb70a1a6f
MD5 c4969f382a506afb0d461911f887ed42
BLAKE2b-256 d674df14657ed189c15e021ca729bfbd2c12d9712c3b037935a1e97345c1bccd

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