zlmdb._flatc¶
FlatBuffers compiler (flatc) bundled with zlmdb.
This module provides access to the flatc binary that is bundled with zlmdb, ensuring version compatibility with the vendored FlatBuffers runtime.
Usage from command line:
flatc --version
flatc --python -o output/ schema.fbs
Usage from Python:
from zlmdb._flatc import get_flatc_path, run_flatc
# Get path to flatc binary
flatc_path = get_flatc_path()
# Run flatc with arguments
returncode = run_flatc(["--version"])
Functions¶
|
Get the path to the bundled flatc executable. |
|
Entry point for the flatc console script. |
|
Run the bundled flatc with the given arguments. |
Package Contents¶
- get_flatc_path() pathlib.Path[source]¶
Get the path to the bundled flatc executable.
- Returns:
Path to the flatc binary
- Raises:
FileNotFoundError – If flatc binary is not found