Metadata-Version: 1.1
Name: zencore-json2csv
Version: 0.1.1
Summary: Convert json array data to csv.
Home-page: https://github.com/appstore-zencore/zencore-json2csv
Author: zencore
Author-email: dobetter@zencore.cn
License: MIT
Description-Content-Type: UNKNOWN
Description: zencore-json2csv
        ================
        
        Convert json array data to csv.
        
        
        Install
        -------
        
        ::
        
            pip install zencore-json2csv
        
        
        Usage
        -----
        
        ::
        
            E:\>json2csv --help
            Usage: json2csv [OPTIONS]
        
            Options:
            -f, --file FILENAME     Input file name, use - for stdin.
            --file-encoding TEXT    Input file encoding.
            -o, --output FILENAME   Output file name, use - for stdout.
            --output-encoding TEXT  Output file encoding.
            -k, --keys TEXT         Output field names. Comma separated string list.
            -p, --path TEXT         Path of the data.
            --help                  Show this message and exit.
        
        Example 1
        ---------
        
        **INPUT:**
        
        ::
        
            [
                [1,2,3],
                [2,3,4]
            ]
        
        **OUTPUT:**
        
        ::
        
            1,2,3
            2,3,4
        
        **COMMAND:**
        
        ::
        
            cat input.txt | json2csv -o output.txt
        
        Example 2
        ---------
        
        **INPUT:**
        
        ::
        
            [
                {"f1": 11, "f2": 12, "f3": 13},
                {"f1": 21, "f3": 23, "f2": 22}
            ]
        
        **OUTPUT:**
        
        ::
        
            11,12,13
            21,22,23
        
        **COMMAND:**
        
        ::
        
            cat input.txt | json2csv -o output.txt -k f1,f2,f3
        
        Example 3
        ---------
        **INPUT:**
        
        ::
        
            {
                "data": {
                    "list": [
                        [1,2,3],
                        [2,3,4],
                    ]
                }
            }
        
        **OUTPUT:**
        
        ::
        
            1,2,3
            2,3,4
        
        **COMMAND:**
        
        ::
        
            cat input.txt | json2csv -o output.txt -p data.list
        
Keywords: zencore-json2csv
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires: click
