AbsBox
AbsBox copied to clipboard
[Call For Discussion] "Typed" syntax in absbox
I've talked two active users (in early stage).
There are various opinions regarding using native Python structure (List/Dict/Tuple) to model deal.
Current design with native structure may look appearing or nuance trouble , when the solution is being integrated in big part of system.
While, for scripting users , it would be great to have a "typed" info to avoid duplicate typing and IDE friendly ( also ,LLM-assist friendly )
The potential solution I"m thinking of is
- Namedtuple
- dataclasses
- Pydantic #64
- attrs
Different options have varius resource impact and , the most important, backward compatibility
- Solution A:
using
astto generate enum/namedtuple to mimic the types in swagger.json