DoJSON is a simple Pythonic JSON to JSON converter.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c61f7a70d2fcf3f5e37026ce6ba82955cffa712a4335d3547fcb6b719a3fc5b
|
|
| MD5 |
ad6ad97b33e17b3f109a28b2b0078755
|
|
| BLAKE2b-256 |
15c6684b58d987adbcae8ffce847c67ae06401012bf1f4efc545e86482697355
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6e07d94f6c4dc7d7dbb417e9c9bb03a0a3b7d1157c5f794b2995b4fb70a1a6f
|
|
| MD5 |
c4969f382a506afb0d461911f887ed42
|
|
| BLAKE2b-256 |
d674df14657ed189c15e021ca729bfbd2c12d9712c3b037935a1e97345c1bccd
|