Adding SdkSettings utility class - #89
Merged
Merged
Conversation
birkholz-cubert
force-pushed
the
feature/add_settings_utilities
branch
2 times, most recently
from
August 19, 2026 11:59
68f6303 to
ab50124
Compare
birkholz-cubert
force-pushed
the
feature/add_settings_utilities
branch
from
August 19, 2026 13:16
15dee98 to
49a45fc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
cuvis.SdkSettings, a utility for writing the SDK'scuvis.settingsfile from Python instead of maintaining it by hand.Ported from an internal tool where the same pattern was already in use.
cuvis.SdkSettings(force_gpu_mode="cuda", processing_thread_count=8).dict- it is aMutableMapping, andxml_strshows the exact file that will be written.cuvis.init()accepts anSdkSettingsdirectly, socuvis.init(cuvis.SdkSettings(...))works.boolbecomestrue/false, anEnumbecomes its value, anything else goes throughstr(), andNonedrops the entry.xml.etree.ElementTreerather than an XSD validator, which would have meant addinglxml.tests/test_sdk_settings.pycover coercion, the mapping surface, loading from a file and a directory, round trips, the rejection cases and the context manager.Documentation lives in the
SdkSettingsclass docstring rather than in the README.Known limitation, deliberately out of scope: setting ids are free-form, so a typo produces a valid file the SDK silently ignores.
No authoritative list of setting ids exists in this repository or in
cuvis-il; sourcing one from the C SDK would be a separate change.