Skip to main content

General utility library for Python applications running in Keboola Connection environment

Project description

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

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

keboola_json_to_csv-0.0.14.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keboola_json_to_csv-0.0.14-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file keboola_json_to_csv-0.0.14.tar.gz.

File metadata

  • Download URL: keboola_json_to_csv-0.0.14.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for keboola_json_to_csv-0.0.14.tar.gz
Algorithm Hash digest
SHA256 e83c534319c1f7b96469789d92ec97c3fb205fc400fec0c87a0d6c1bb195604a
MD5 7e00e619b9d13fddefdd1379aded82b4
BLAKE2b-256 a3aa807c24f2682a4c159a0f7150bb257c5e31c42bd9e6fdc28cc32a93405e15

See more details on using hashes here.

File details

Details for the file keboola_json_to_csv-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for keboola_json_to_csv-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d046778081ae8fc372a0d724b184cb3487222829f91a0e1401cc76b1829c58
MD5 84a388136353b73170bdacecab2f42c8
BLAKE2b-256 ba530912249047f73909dbfa6e5524edeeda7738fad15c006dfff11c2638da4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page