Skip to content

A Python-based tool for converting CSV files into JSON format. This converter dynamically loads CSV files, applies schemas for consistent data formatting, and saves them as JSON files. Ideal for processing multiple datasets efficiently, the converter offers a modular design and batch-processing capabilities.

Notifications You must be signed in to change notification settings

Pritam991/file-format-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Format Converter

Python

A Python-based tool for converting CSV files into JSON format. This converter dynamically loads CSV files, applies schemas for consistent data formatting, and saves them as JSON files. Ideal for processing multiple datasets efficiently, the converter offers a modular design and batch-processing capabilities.

Features

  • Automatic File Detection: Utilizes glob patterns to automatically detect CSV files for processing.
  • Schema-Based Conversion: Reads column schemas from a configuration file to ensure consistency in the output JSON structure.
  • Dynamic Dataset Identification: Extracts dataset names from file paths or names using regular expressions.
  • Flexible CSV to JSON Transformation: Loads CSV files into Pandas DataFrames with the specified schema, allowing flexible data manipulation.
  • Target Path Generation: Automatically generates output file paths for the JSON files.
  • Batch Processing Wrapper: Supports converting multiple datasets in a single call, making it efficient for handling large volumes of files.

Requirements

  • Python 3.x
  • Pandas library (pip install pandas)

Getting Started

Installation

  1. Clone the repository:
    git clone https://github.com/Pritam991/file-format-converter.git

About

A Python-based tool for converting CSV files into JSON format. This converter dynamically loads CSV files, applies schemas for consistent data formatting, and saves them as JSON files. Ideal for processing multiple datasets efficiently, the converter offers a modular design and batch-processing capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages