Commit Graph

5 Commits

Author SHA1 Message Date
hanishkvc d470d7e47d SimpleSallap:SimpleProxy:DataClass Config simpleproxy updated 2025-12-05 21:42:41 +05:30
hanishkvc 277225dddd SimpleSallap:SimpleProxy:DataClass Config - p4
Minimal skeleton to allow dict [] style access to dataclass based
class's attributes/fields. Also get member function similar to dict.

This simplifies the flow and avoids duplicating data between
attribute and dict data related name and data spaces.
2025-12-05 21:10:01 +05:30
hanishkvc 4f790cb646 SimpleSallap:SimpleProxy:DataClass Config - P3
Add a helper base class to try map data class's attributes into
underlying dict.

TODO: this potentially duplicates data in both normal attribute
space as well as dict items space. And will require additional
standard helper logics to be overridden to ensure sync between
both space etal. Rather given distance from python internals for
a long time now, on pausing and thinking a bit, better to move
into a simpler arch where attributes are directly worked on for
dict [] style access.
2025-12-05 20:47:33 +05:30
hanishkvc 5560840099 SimpleSallap:SimpleProxy:DataclassDict driven Config - p2
Assigning defaut values wrt compound type class members
2025-12-05 18:36:43 +05:30
hanishkvc 4e7c7374d7 SimpleSallap:SimpleProxy:Make Config dataclass driven - p1
Instead of maintaining the config and some of the runtime states
identified as gMe as a generic literal dictionary which grows at
runtime with fields as required, try create it as a class of classes.

Inturn use dataclass annotation to let biolerplate code get auto
generated.

A config module created with above, however remaining part of the
code not yet updated to work with this new structure.

process_args and load_config moved into the new Config class.
2025-12-05 17:59:20 +05:30