Metadata-Version: 2.4
Name: spreadsheet-handling
Version: 0.1.0b5
Summary: Composable pipelines for spreadsheets (JSON/YAML/CSV/XLSX) with FK helpers, validation, and IO routing.
Author: Stefan Schade
License: MIT License
        
        Copyright (c) 2025 Stefan Schade
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/StefanSchade/spreadsheet-handling
Project-URL: Issues, https://github.com/StefanSchade/spreadsheet-handling/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=2.0
Requires-Dist: openpyxl>=3.1
Requires-Dist: odfpy>=1.4.1
Requires-Dist: XlsxWriter>=3.0
Requires-Dist: pyyaml>=6
Provides-Extra: dev
Requires-Dist: pytest>=8.2; extra == "dev"
Requires-Dist: pytest-cov>=5; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Requires-Dist: black>=24; extra == "dev"
Requires-Dist: autopep8>=2; extra == "dev"
Dynamic: license-file

# Spreadsheet Handling

**Spreadsheet Handling** is a Python toolkit for packing/unpacking and orchestrating tabular data.  
It converts between JSON, CSV, and Excel (XLSX/ODS) while preserving relationships such as foreign keys, indexes, and hierarchies.  
The goal is to make complex spreadsheet models easier to validate, transform, and round-trip into structured formats.

---

## Features

- Convert JSON ↔ CSV/Excel with round-tripping support
- Detect and enforce foreign key relationships
- Validate spreadsheet structures (naming rules, uniqueness, etc.)
- Orchestrate multi-sheet pipelines via YAML configs
- Extensible: plug in new backends and transformation steps

---

## Installation

```bash
# clone repo
git clone https://github.com/StefanSchade/spreadsheet-handling.git
cd spreadsheet-handling

# set up environment
make setup
```

## Usage

### Pack JSON into Excel:

```bash
sheets-pack examples/roundtrip_start.json -o demo.xlsx --levels 3
```

### Unpack Excel back into JSON:

```bash
sheets-unpack demo.xlsx -o demo_out --levels 3
```

### Run full test suite:

```bash
make test
```

### AI Usage & Position Statement

- AI tools are used at all levels of this project: requirement analysis, solution design, coding.
- Human oversight, testing, and review remain essential. AI augments reasoning and speed but does not replace engineering judgment.
- Quality and maintainability are goals treated with priority; AI contributes to these.

*Industry trends support this approach:*
according to the [JetBrains Developer Ecosystem 2025 survey published by *Golem.de*](https://www.golem.de/news/umfrage-unter-24-000-entwicklern-gesamtes-berufsfeld-befindet-sich-im-wandel-2510-188855.html), AI adoption is already pervasive and considered a core competency.


### License

This project is licensed under the terms of the MIT License.
See [LICENCE](LICENSE) for details.


