-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend to convert a dbus-python result into a structure of simple Python types, i.e., to strip the marshalling packaging #105
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The target does not need any special new dependency. However, it could make use of any of the many tools that are used to represent JSON types of which Pydantic is the standard.
Most simply though, it could be a function that acts like a recursively defined function on dbus-python types, but is specialized to that particular property or what not. The problem is that it can build the object, but does not define the class, so there is no documentation for the class, the user has to know it based on something. Of course, once the object is available, it is introspectable.
Once you encounter a variant type, though, you just run the function that must deal with variant types.
And, if the mapping in the D-Bus property is actually optional, then so is the attribute, I guess.
The text was updated successfully, but these errors were encountered: