Skip to main content

Python JSON to CSV Library

Introduction

JSON-to-CSV is a Python library designed to simplify the process of parsing JSON data and converting it into CSV files. It provides a flexible and efficient solution for handling JSON data with complex structures and converting it into structured CSV files for easy analysis and storage. The library offers a user-friendly interface for specifying table mappings, primary keys, and data types, allowing users to customize the output CSV format to suit their specific needs. Whether you are dealing with large-scale JSON datasets or small JSON objects, JSON-to-CSV offers powerful tools to streamline the parsing and conversion process, making it an indispensable tool for data engineers and analysts.

How it Works

The parser in JSON-to-CSV operates in three main steps. First, it analyzes the JSON data and constructs a mapping of tables, columns, and data types based on the user-provided table mapping or through automatic inference if not explicitly specified. Next, it processes the JSON data and organizes it into a structured format according to the defined table mapping. During this step, the parser performs additional analysis for data that is not explicitly specified in the table mapping if the user chooses to do so. Finally, the parsed data is saved as CSV files, with each table represented as a separate CSV file, preserving the hierarchical relationships between the tables.

Quickstart

Installation

pip install keboola.json-to-csv

Usage

See Examples folder for usage

Metadata

Release files for keboola.json-to-csv 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keboola.json-to-csv 0.0.14
File Size Uploaded Provenance
keboola_json_to_csv-0.0.14.tar.gz 16.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for keboola.json-to-csv 0.0.14
File Interpreter ABI Platform
keboola_json_to_csv-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 33.8 kB

Release files / keboola_json_to_csv-0.0.14.tar.gz

Download URL keboola_json_to_csv-0.0.14.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e83c534319c1f7b96469789d92ec97c3fb205fc400fec0c87a0d6c1bb195604a
BLAKE2b-256 checksum
How to use checksums
a3aa807c24f2682a4c159a0f7150bb257c5e31c42bd9e6fdc28cc32a93405e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / keboola_json_to_csv-0.0.14-py3-none-any.whl

Download URL keboola_json_to_csv-0.0.14-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9d046778081ae8fc372a0d724b184cb3487222829f91a0e1401cc76b1829c58
BLAKE2b-256 checksum
How to use checksums
ba530912249047f73909dbfa6e5524edeeda7738fad15c006dfff11c2638da4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for keboola.json-to-csv 0.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page