json-lines-to-object


Namejson-lines-to-object JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/dsoprea/JsonLinesToObject
SummaryConvert raw lines to a JSON object.
upload_time2018-01-25 04:14:26
maintainer
docs_urlNone
authorDustin Oprea
requires_python
licenseGPL 2
keywords json
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            --------
Overview
--------

This is a simple tool to convert whitespace-separated items on separate lines to a JSON object.


-------
Install
-------

Use PyPI::

    $ pip install json_lines_to_object


-------
Example
-------

Just pipe the data in::

    $ printf "key1 value1\nkey2 value2\nkey3 value3 value33" | jlto
    {
        "key1": "value1",
        "key2": "value2",
        "key3": "value3 value33"
    }


--------
Features
--------

- Will ignore newlines.


-------
Options
-------

- Can be told to skip hash-commented lines.
- Can be told to automatically add an empty string for a value if there is only one part on the line (causes error by default).
- Can be told to allow duplicate keys (causes error by default).
- Can be told to flip the keys and values (the values will be the keys).

See command-line help for more information.
            

Raw data

            {
    "_id": null,
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "cheesecake_code_kwalitee_id": null,
    "keywords": "json",
    "upload_time": "2018-01-25 04:14:26",
    "requirements": [],
    "author": "Dustin Oprea",
    "home_page": "https://github.com/dsoprea/JsonLinesToObject",
    "github_user": "dsoprea",
    "download_url": "https://pypi.python.org/packages/7a/c1/cd1bce6c00fbb875de72720c8ffc29fb7286fb3201371f08212305fe2411/json_lines_to_object-0.2.2.tar.gz",
    "platform": "",
    "version": "0.2.2",
    "cheesecake_documentation_id": null,
    "description": "--------\nOverview\n--------\n\nThis is a simple tool to convert whitespace-separated items on separate lines to a JSON object.\n\n\n-------\nInstall\n-------\n\nUse PyPI::\n\n    $ pip install json_lines_to_object\n\n\n-------\nExample\n-------\n\nJust pipe the data in::\n\n    $ printf \"key1 value1\\nkey2 value2\\nkey3 value3 value33\" | jlto\n    {\n        \"key1\": \"value1\",\n        \"key2\": \"value2\",\n        \"key3\": \"value3 value33\"\n    }\n\n\n--------\nFeatures\n--------\n\n- Will ignore newlines.\n\n\n-------\nOptions\n-------\n\n- Can be told to skip hash-commented lines.\n- Can be told to automatically add an empty string for a value if there is only one part on the line (causes error by default).\n- Can be told to allow duplicate keys (causes error by default).\n- Can be told to flip the keys and values (the values will be the keys).\n\nSee command-line help for more information.",
    "lcname": "json-lines-to-object",
    "name": "json-lines-to-object",
    "github": true,
    "coveralls": false,
    "bugtrack_url": null,
    "license": "GPL 2",
    "travis_ci": false,
    "github_project": "JsonLinesToObject",
    "summary": "Convert raw lines to a JSON object.",
    "split_keywords": [
        "json"
    ],
    "author_email": "myselfasunder@gmail.com",
    "urls": [
        {
            "has_sig": false,
            "upload_time": "2018-01-25T04:14:26",
            "comment_text": "",
            "python_version": "source",
            "url": "https://pypi.python.org/packages/7a/c1/cd1bce6c00fbb875de72720c8ffc29fb7286fb3201371f08212305fe2411/json_lines_to_object-0.2.2.tar.gz",
            "md5_digest": "29df49bad27064fa4f87a9e5d04071a2",
            "downloads": 0,
            "filename": "json_lines_to_object-0.2.2.tar.gz",
            "packagetype": "sdist",
            "path": "7a/c1/cd1bce6c00fbb875de72720c8ffc29fb7286fb3201371f08212305fe2411/json_lines_to_object-0.2.2.tar.gz",
            "size": 2735
        }
    ],
    "cheesecake_installability_id": null
}
        
Elapsed time: 0.09036s