A professional JSON to CSV conversion library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arcolabutils-1.0.0.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arcolabutils-1.0.0.tar.gz.
File metadata
- Download URL: arcolabutils-1.0.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3183a4aee65a5ffd79fcacf9438b0d52203564e32a4f53a1d317b1df27efa81b
|
|
| MD5 |
07e9fa494632b8677d20b6717ff4cf5c
|
|
| BLAKE2b-256 |
a56ed26293753606d02b092997e1ae3b833c383a117b932483a07bf83073e5e6
|
File details
Details for the file arcolabutils-1.0.0-py3-none-any.whl.
File metadata
- Download URL: arcolabutils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e001d9918724e41bb467cb8ec02f143d599ed535b30a9212828f2f4e63cf21ec
|
|
| MD5 |
bd01b453965ce02fd0cfdd3038b08186
|
|
| BLAKE2b-256 |
ae221120307fe693570391da01c02c2a6aa8e6026f94df1fa9a5a5980d7c7063
|