A JSON-like object parsing tool for python
Project description
===================================================
jparse - A JSON-like Object Parsing Tool for Python
===================================================
.. image:: jparse.png
:target: https://github.com/elisong/jparse
-----
.. image:: https://travis-ci.org/elisong/jparse.svg?branch=master
:alt: Build Status
:target: https://travis-ci.org/elisong/jparse
.. image:: https://img.shields.io/badge/pypi-v0.1.1-blue.svg
:alt: PyPI
:target: https://github.com/elisong/jparse
.. image:: https://img.shields.io/badge/python-2.7%2C3.4%2C3.5%2C3.6-blue.svg
:alt: PyPI - Python Version
:target: https://github.com/elisong/jparse
.. image:: https://codecov.io/github/elisong/jparse/coverage.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/elisong/jparse
This tool is created to make retrieving data from http ``response.json()`` or json library ``json.loads()`` easy.
It helps to ``flatten``, ``filter``, ``select``, ``update``, and ``sort`` such objects, finally ``to_df`` (pandas.DataFrame format).
Simple Case
-----------
.. code-block:: python
>>> from jparse import JParser
>>> jp = JParser()
>>> TEST_CASE1 = [{'A1': 1, 'A2': 2, 'A3': 3},
{'A1': [4, 5, 6], 'A2': 7, 'A3': 'x'}]
>>> print(jp.flatten(TEST_CASE1))
defaultdict(None, {'0_A1': 1,
'0_A2': 2,
'0_A3': 3,
'1_A1_0': 4,
'1_A1_1': 5,
'1_A1_2': 6,
'1_A2': 7,
'1_A3': 'x'})
Dependencies
------------
`Document here`_
.. _Document here: http://jparse.readthedocs.io/en/latest/
- **pandas**
Installation
------------
.. code-block:: sh
pip install jparse
or
.. code-block:: sh
pip install git+https://github.com/elisong/jparse.git#egg=jparse
Document
--------
http://jparse.readthedocs.io/en/latest/
::
Changelog
---------
v0.1.0 - 2018-08-13
==================
- **Added**
- Create project.
jparse - A JSON-like Object Parsing Tool for Python
===================================================
.. image:: jparse.png
:target: https://github.com/elisong/jparse
-----
.. image:: https://travis-ci.org/elisong/jparse.svg?branch=master
:alt: Build Status
:target: https://travis-ci.org/elisong/jparse
.. image:: https://img.shields.io/badge/pypi-v0.1.1-blue.svg
:alt: PyPI
:target: https://github.com/elisong/jparse
.. image:: https://img.shields.io/badge/python-2.7%2C3.4%2C3.5%2C3.6-blue.svg
:alt: PyPI - Python Version
:target: https://github.com/elisong/jparse
.. image:: https://codecov.io/github/elisong/jparse/coverage.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/elisong/jparse
This tool is created to make retrieving data from http ``response.json()`` or json library ``json.loads()`` easy.
It helps to ``flatten``, ``filter``, ``select``, ``update``, and ``sort`` such objects, finally ``to_df`` (pandas.DataFrame format).
Simple Case
-----------
.. code-block:: python
>>> from jparse import JParser
>>> jp = JParser()
>>> TEST_CASE1 = [{'A1': 1, 'A2': 2, 'A3': 3},
{'A1': [4, 5, 6], 'A2': 7, 'A3': 'x'}]
>>> print(jp.flatten(TEST_CASE1))
defaultdict(None, {'0_A1': 1,
'0_A2': 2,
'0_A3': 3,
'1_A1_0': 4,
'1_A1_1': 5,
'1_A1_2': 6,
'1_A2': 7,
'1_A3': 'x'})
Dependencies
------------
`Document here`_
.. _Document here: http://jparse.readthedocs.io/en/latest/
- **pandas**
Installation
------------
.. code-block:: sh
pip install jparse
or
.. code-block:: sh
pip install git+https://github.com/elisong/jparse.git#egg=jparse
Document
--------
http://jparse.readthedocs.io/en/latest/
::
Changelog
---------
v0.1.0 - 2018-08-13
==================
- **Added**
- Create project.
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
jparse-0.1.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for jparse-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473139a26e99718af8419198818bad093593aeb9ede7cc6c464ea8f475b9263e |
|
MD5 | 0fbb8a253bc6d849228dd900541154da |
|
BLAKE2b-256 | b4192bbd66de0a25a392ca4f913adf2ffad255a886910f8c35de66eb2d88c051 |