Summary
Create a frontend that converts Python argparse.ArgumentParser objects directly into Styx IR, enabling downstream descriptor generation.
Prior Art
Proposed Architecture
A two-stage approach to maximize compatibility:
-
Standalone serialization package: A minimal, self-contained Python package that serializes argparse.ArgumentParser objects to a JSON representation. This package should support a wide range of Python versions to allow use in legacy environments.
-
Styx frontend: Consumes the JSON output and converts it to Styx IR.
This decoupled design isolates version-sensitive introspection logic from the main Styx toolchain.
Summary
Create a frontend that converts Python
argparse.ArgumentParserobjects directly into Styx IR, enabling downstream descriptor generation.Prior Art
get_descriptorcreator.pyProposed Architecture
A two-stage approach to maximize compatibility:
Standalone serialization package: A minimal, self-contained Python package that serializes
argparse.ArgumentParserobjects to a JSON representation. This package should support a wide range of Python versions to allow use in legacy environments.Styx frontend: Consumes the JSON output and converts it to Styx IR.
This decoupled design isolates version-sensitive introspection logic from the main Styx toolchain.