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.10.tar.gz (15.5 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.10-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file keboola.json-to-csv-0.0.10.tar.gz.

File metadata

  • Download URL: keboola.json-to-csv-0.0.10.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for keboola.json-to-csv-0.0.10.tar.gz
Algorithm Hash digest
SHA256 d24f44d0ca4c9fc43a2b803688b934815af01c69b2adb7e2b41a948f85fd2087
MD5 90106ff872821245deab0e54023e4ed7
BLAKE2b-256 fd2f1412b3a497420f257966ca94c4e8e1b1e1e63718983edfb97b6066403c62

See more details on using hashes here.

File details

Details for the file keboola.json_to_csv-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for keboola.json_to_csv-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a7fc8d3c1b2e5aa72b5aeae08cdadbef12c117d643d0e05541438923ae5b05
MD5 89fcb32b64c22e848d46145b06b1fa7b
BLAKE2b-256 1f2b2d12398eb0bcca3008d03f7a6281f0ad35841396027eb127e6f539f6a1d3

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