Skip to content

Fix custom namespaces for modernpython#44

Open
tom-hg57 wants to merge 7 commits into
alliander-opensource:mainfrom
tom-hg57:fix-custom-namespaces-for-modernpython
Open

Fix custom namespaces for modernpython#44
tom-hg57 wants to merge 7 commits into
alliander-opensource:mainfrom
tom-hg57:fix-custom-namespaces-for-modernpython

Conversation

@tom-hg57
Copy link
Copy Markdown
Contributor

@tom-hg57 tom-hg57 commented Sep 6, 2025

  • Update generated modernpython sources created by cimgen (https://github.com/sogno-platform/cimgen/tree/master)
    • Change creation of constants for modernpython, generating now all namespaces in constants.py and correcting eu namespace for CGMES 3
    • Add attribute_namespace to json_extra to handle custom attributes
    • Fix json_dump error by setting attribute_class as str
    • Add default implementation of Base.possible_profiles
    • Add handling of namespaces to chevron_writer.py
    • Improve handling of ruff and pyright warnings
    • Add version to constants.py for modernpython (needed to test custom namespaces in unit tests)
  • Adapt tests to new cimgen code
  • Rename writer example acc. to renamed writer.py to chevron_writer.py
  • Adapt examples to new cimgen code
  • Add examples to ruff and pyright checks
  • Adapt README.md to new cimgen code
  • Fix enum comments for modernpython

…ub.com/sogno-platform/cimgen/tree/master)

- Change creation of constants for modernpython, generating now all namespaces in constants.py and correcting eu namespace for CGMES 3
- Add attribute_namespace to json_extra to handle custom attributes
- Fix json_dump error by setting attribute_class as str
- Add default implementation of Base.possible_profiles
- Add handling of namespaces to chevron_writer.py
- Improve handling of ruff and pyright warnings
- Add version to constants.py for modernpython (needed to test custom namespaces in unit tests)

Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant