AbsBox icon indicating copy to clipboard operation
AbsBox copied to clipboard

[Call For Discussion] "Typed" syntax in absbox

Open yellowbean opened this issue 1 year ago • 1 comments

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

yellowbean avatar Mar 14 '25 04:03 yellowbean

  • Solution A: using ast to generate enum/namedtuple to mimic the types in swagger.json

yellowbean avatar Mar 20 '25 11:03 yellowbean