Skip to main content

A professional JSON to CSV conversion library

Project description


File: README.md

# ArcoJson

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  ArcoJson

Quick Start

from ArcoJson 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.

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

arcojson-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

arcojson-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file arcojson-1.0.0.tar.gz.

File metadata

  • Download URL: arcojson-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for arcojson-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e829316833f950d7c2d1a72574e28636427e40045cdb43bc42aa918ec1ff55a
MD5 a65a07c9d2821c1f707452cdb76a0bc6
BLAKE2b-256 9783efab73c7f27c50ddbc4e87a24327f979ca956c6bae7e37c3920a01ec43af

See more details on using hashes here.

File details

Details for the file arcojson-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: arcojson-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for arcojson-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 232c7799a517e9093dab8c6784b3777e464bff54c2235eb12d0241f377a38eb6
MD5 704db2d435fb498c16b593afa1618999
BLAKE2b-256 db7849a509f4bcb6ab06a5df4a86740c6e80617edfa95972b17e4bc331e5aeb1

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