========
DoJSON
========
.. image:: https://github.com/inveniosoftware/dojson/workflows/CI/badge.svg
:target: https://github.com/inveniosoftware/dojson/actions
.. 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://dojson.readthedocs.io/ 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'))]
Raw data
{
"_id": null,
"home_page": "http://github.com/inveniosoftware/dojson/",
"name": "dojson",
"maintainer": "",
"docs_url": "https://pythonhosted.org/dojson/",
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Invenio collaboration",
"author_email": "info@inveniosoftware.org",
"download_url": "https://files.pythonhosted.org/packages/23/5e/7270a2a76e083ef6db95a2e9d8624d318f7962f2766da2538aa2f5aa9959/dojson-1.5.0.tar.gz",
"platform": "any",
"description": "========\n DoJSON\n========\n\n.. image:: https://github.com/inveniosoftware/dojson/workflows/CI/badge.svg\n :target: https://github.com/inveniosoftware/dojson/actions\n\n.. image:: https://img.shields.io/coveralls/inveniosoftware/dojson.svg\n :target: https://coveralls.io/r/inveniosoftware/dojson\n\n.. image:: https://img.shields.io/github/tag/inveniosoftware/dojson.svg\n :target: https://github.com/inveniosoftware/dojson/releases\n\n.. image:: https://img.shields.io/pypi/dm/dojson.svg\n :target: https://pypi.python.org/pypi/dojson\n\n.. image:: https://img.shields.io/github/license/inveniosoftware/dojson.svg\n :target: https://github.com/inveniosoftware/dojson/blob/master/LICENSE\n\n\nAbout\n=====\n\nDoJSON is a simple Pythonic JSON to JSON converter.\n\nInstallation\n============\n\nDoJSON is on PyPI so all you need is:\n\n.. code-block:: console\n\n $ pip install dojson\n\nDocumentation\n=============\n\nDocumentation is readable at https://dojson.readthedocs.io/ or\nit can be built using Sphinx:\n\n.. code-block:: console\n\n $ pip install dojson[docs]\n $ python setup.py build_sphinx\n\nTesting\n=======\n\nRunning the test suite is as simple as:\n\n.. code-block:: console\n\n $ python setup.py test\n\nExample\n=======\n\nA simple example on how to convert MARCXML to JSON:\n\n.. code:: python\n\n from dojson.contrib.marc21.utils import create_record, split_stream\n from dojson.contrib.marc21 import marc21\n [marc21.do(create_record(data)) for data in split_stream(open('/tmp/data.xml', 'r'))]\n\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "DoJSON is a simple Pythonic JSON to JSON converter.",
"version": "1.5.0",
"project_urls": {
"Homepage": "http://github.com/inveniosoftware/dojson/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "19be66896ad53e59e2ba964817b439a72561eae4b8618680135f6de9e130b6f1",
"md5": "48914b76e036c3ee445382c7688ed97a",
"sha256": "a154be5a9db0be89d5974572e72a9f9e77d34a68ba9ddbe4a0aabaf80605610c"
},
"downloads": -1,
"filename": "dojson-1.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "48914b76e036c3ee445382c7688ed97a",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 252213,
"upload_time": "2023-11-09T11:27:25",
"upload_time_iso_8601": "2023-11-09T11:27:25.319458Z",
"url": "https://files.pythonhosted.org/packages/19/be/66896ad53e59e2ba964817b439a72561eae4b8618680135f6de9e130b6f1/dojson-1.5.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "235e7270a2a76e083ef6db95a2e9d8624d318f7962f2766da2538aa2f5aa9959",
"md5": "28114fce9f12614f7e3618892ee0e904",
"sha256": "61732b612e877e01c40c900e933841d2cecac73cf6376df1d1270b8739914eb8"
},
"downloads": -1,
"filename": "dojson-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "28114fce9f12614f7e3618892ee0e904",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 305198,
"upload_time": "2023-11-09T11:27:27",
"upload_time_iso_8601": "2023-11-09T11:27:27.336180Z",
"url": "https://files.pythonhosted.org/packages/23/5e/7270a2a76e083ef6db95a2e9d8624d318f7962f2766da2538aa2f5aa9959/dojson-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-09 11:27:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "inveniosoftware",
"github_project": "dojson",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "dojson"
}