Skip to content

feat: DH-21667: Add Python wrapper for Configuration.#7696

Open
cpwright wants to merge 6 commits intodeephaven:mainfrom
cpwright:cpw/wrap-configuration
Open

feat: DH-21667: Add Python wrapper for Configuration.#7696
cpwright wants to merge 6 commits intodeephaven:mainfrom
cpwright:cpw/wrap-configuration

Conversation

@cpwright
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

No docs changes detected for eb557ea

Copy link
Contributor

@jmao-denver jmao-denver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the interface feels very Java-ish vs. Pythonic. I wonder if we should make it more convenient for the users to return a dict-like object (i.e. implement the mapping protocol). On the other hand, it is not very different from Python's ConfigParser except the mapping protocol implementation part.

Comment on lines +200 to +201
def has_property(self, property_name: str) -> bool:
"""Check if a configuration property is defined.
Copy link
Contributor

@jmao-denver jmao-denver Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that we probably want something like keys(), values() and items() if one of the primary use cases of this class is for a Python user to view the configuration of the server.

cpwright and others added 2 commits February 23, 2026 09:12
Co-authored-by: Jianfeng Mao <4297243+jmao-denver@users.noreply.github.com>
Copy link
Contributor Author

@cpwright cpwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I (Claude) added the mapping protocol so it can be used in a more pythonic way.

Copy link
Contributor

@jmao-denver jmao-denver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we have chosen to implement the mapping protocol, might as well do a more complete job.

@jmao-denver jmao-denver self-requested a review February 24, 2026 01:25
cpwright and others added 2 commits February 25, 2026 13:30
Co-authored-by: Jianfeng Mao <4297243+jmao-denver@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants