Skip to content
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

Open
mulkieran opened this issue May 30, 2024 · 0 comments
Assignees

Comments

@mulkieran
Copy link
Member

mulkieran commented May 30, 2024

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.

@mulkieran mulkieran self-assigned this May 30, 2024
@github-project-automation github-project-automation bot moved this to To do in 2024June May 30, 2024
@mulkieran mulkieran removed this from 2024June Jul 3, 2024
@mulkieran mulkieran moved this to Todo in 2024July Jul 3, 2024
@mulkieran mulkieran removed this from 2024July Aug 5, 2024
@mulkieran mulkieran removed this from 2024August Sep 5, 2024
@mulkieran mulkieran moved this to In Progress in 2024September Sep 5, 2024
@mulkieran mulkieran moved this from In Progress to Todo in 2024September Sep 5, 2024
@mulkieran mulkieran removed this from 2024September Oct 7, 2024
@mulkieran mulkieran removed this from 2024October Nov 4, 2024
@mulkieran mulkieran removed this from 2024November Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant