Skip to main content

File: README.md

# json2csv-pro

A professional, feature-rich Python library for converting JSON data to CSV format with advanced capabilities.

## Features

- ✨ Convert JSON to CSV with ease
- 🔄 Handle nested JSON structures automatically
- 📊 Batch conversion support
- ✅ Data validation
- 🎨 Customizable delimiters and formatting
- 📝 Comprehensive documentation
- 🔍 Type hints for better IDE support
- ⚡ High performance

## Installation

```bash
pip install json2csv-pro

Quick Start

from json2csv_pro import JSONConverter

# Create converter instance
converter = JSONConverter()

# Simple conversion
data = [
    {"name": "John", "age": 30, "city": "NYC"},
    {"name": "Jane", "age": 25, "city": "LA"}
]

converter.convert_to_csv(
    data=data,
    output_file="output.csv"
)

Advanced Usage

Handling Nested JSON

data = [
    {
        "name": "John",
        "age": 30,
        "address": {
            "city": "NYC",
            "country": "USA"
        }
    }
]

converter.convert_to_csv(
    data=data,
    output_file="output.csv",
    flatten_nested=True,
    delimiter=','
)

Batch Conversion

converter.convert_batch(
    input_files=["file1.json", "file2.json", "file3.json"],
    output_dir="output/",
    flatten_nested=True
)

Preview Before Converting

preview = converter.preview_conversion(
    data=data,
    rows=5
)
print(preview)

Documentation

Full documentation available at: Read the Docs

Contributing

Contributions are welcome! Please read our Contributing Guide.

License

MIT License - see LICENSE file for details.

Metadata

Release files for JSON2CSVLIB 1.0.0

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

Source distribution (sdist)

Source distribution for JSON2CSVLIB 1.0.0
File Size Uploaded Provenance
json2csvlib-1.0.0.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for JSON2CSVLIB 1.0.0
File Interpreter ABI Platform
json2csvlib-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / json2csvlib-1.0.0.tar.gz

Download URL json2csvlib-1.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9bcf21301ac345731621078ebc0ef753b2cd0091eed21667f4d83e13959909d5
BLAKE2b-256 checksum
How to use checksums
9903b97816b62d7e634ad44b0fd0a277d4919d784a052c4278ed46024b1d7f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / json2csvlib-1.0.0-py3-none-any.whl

Download URL json2csvlib-1.0.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6446a8922232a4bcf122c31b98bf423e4d07f9ab0017bd365f7ca54b9eb34aa8
BLAKE2b-256 checksum
How to use checksums
c57f38873f5c13d47acf07d1dbe4ffbf7f2fecc9d162bdf49e5389c05633efbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for JSON2CSVLIB 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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