mxndtaylor / aliasing

a small utility library to add aliases to python classes
MIT License
1 stars 0 forks source link

Feature: some way of getting properties of properties like `@alias("primary.nested")` or something #23

Open mxndtaylor opened 1 month ago

mxndtaylor commented 1 month ago

Is your feature request related to a problem? Please describe. aliasing currently is only grabbing values "flatly" in the sense that it only gets properties of the immediate class it's attached to.

Describe the solution you'd like a descriptor that repeats the de-aliasing process on it's result based on a series of terms. some like accepting varargs like *props: str or a path variable with delimiters like "prop.prop"

Describe alternatives you've considered jsonpath_ng or jq do similar things, but they involve more processing, I just want something extremely simple and straightforward.