autobahn._flatc¶
FlatBuffers compiler (flatc) bundled with the package.
This module provides access to the flatc binary that is bundled with the package, ensuring version compatibility with the vendored FlatBuffers runtime.
Usage from command line:
flatc --version
flatc --python -o output/ schema.fbs
Usage from Python:
from <package>._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"])
- Note: This file is shared across WAMP ecosystem projects via wamp-cicd.
Source: wamp-cicd/scripts/flatc/_flatc.py Projects copy this file to: src/<package>/_flatc/__init__.py
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