Skip to content

Commit 9e3037a

Browse files
committed
docs: explain cross-language NativeAOT usage
Document subprocess integration from non-.NET languages and clarify that the CLI is not a native FFI library.
1 parent 5a58e15 commit 9e3037a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎src/MiniExcel.Cli/README.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ GitHub releases include self-contained archives that do not require a .NET runti
3636

3737
Extract the archive and place `miniexcel` (or `miniexcel.exe` on Windows) on your `PATH`.
3838

39+
### Use from other languages
40+
41+
The NativeAOT executable can be invoked from any language that can start a process, including Python, Node.js, Rust, Go, Java, and PHP. Use files for input and consume the JSON written by `query` on standard output. No .NET runtime or .NET language binding is required.
42+
43+
```python
44+
import json
45+
import subprocess
46+
47+
result = subprocess.run(
48+
["miniexcel", "query", "--input", "input.xlsx"],
49+
check=True,
50+
capture_output=True,
51+
text=True,
52+
)
53+
rows = json.loads(result.stdout)
54+
```
55+
56+
This is command-line process integration, not a native library ABI or direct FFI API.
57+
3958
## Usage
4059

4160
Convert CSV to Excel or Excel to CSV:

0 commit comments

Comments
 (0)