Metadata-Version: 2.4
Name: minimindslab-ini-merge
Version: 0.1.0
Summary: Deterministically merge two INI/configparser-style texts with explicit overwrite rules and stable section/key ordering.
Author: MiniMindsLab
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# MiniMindsLab INI Merge

Deterministically merge two INI/configparser-style texts with explicit overwrite rules and stable section/key ordering.

## Features

- Pure Python (standard library only)
- Deterministic merge behavior
- Predictable conflict resolution (second input wins)
- Stable output formatting across runs
- Clear error handling for invalid INI input

## Usage

```python
from minimindslab_ini_merge import merge_ini_texts

base = """
[app]
name = demo
port = 8000
"""

override = """
[app]
port = 9000
[logging]
level = INFO
"""

merged = merge_ini_texts(base, override)
print(merged)
```

Output:

```ini
[app]
name = demo
port = 9000

[logging]
level = INFO
```

## Rules

1. All sections/keys from both inputs are included.
2. If the same `section/key` appears in both inputs, the second input value wins.
3. Ordering is stable:
   - Sections from the first input keep their order.
   - New sections from the second input are appended in their original order.
   - Keys within a section follow the same rule.

## Errors

Invalid INI content raises `ValueError` and no partial merge result is returned.
