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'))]
Release files for dojson 1.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dojson-1.7.1.tar.gz | 169.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dojson-1.7.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 414.9 kB
Release files / dojson-1.7.1.tar.gz
| Download URL | dojson-1.7.1.tar.gz |
|---|---|
| Size | 169.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f5d0d98648000c1374dd90422cca6c4ef43dc70a76b6309b313962bea3cfbe
|
|
BLAKE2b-256 checksum How to use checksums |
559cc1fcff79064101ed13b1540d558a7384cfee86d2c6a3e9a1125ae8f3a2ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / dojson-1.7.1-py2.py3-none-any.whl
| Download URL | dojson-1.7.1-py2.py3-none-any.whl |
|---|---|
| Size | 245.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7fe6906241902059fd2d27911fe858794fb723c97ce938e1b096faaf04a57c63
|
|
BLAKE2b-256 checksum How to use checksums |
591c449ee38ef6a4a0f9d7657f5c7b4a99306d8df26d9705f2a47e6bbb6f76d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|