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

feat: Use separate Python classes for messages #568

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

HenningHolmDE
Copy link
Contributor

This adds wrapper classes for the messages handled by the codecs' decode and encode functions.
Currently, these classes only provide a dictionary interface through their from_dict and as_dict methods while this allows for future transitions to a more pythonic interface.

This closes #559.

Copy link
Owner

@duesee duesee left a comment

Choose a reason for hiding this comment

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

Thanks, Henning!

@HenningHolmDE HenningHolmDE force-pushed the python_classes_for_messages branch from 0264c10 to 91ab548 Compare July 23, 2024 18:52
@coveralls
Copy link
Collaborator

coveralls commented Jul 23, 2024

Pull Request Test Coverage Report for Build 10064745063

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.981%

Totals Coverage Status
Change from base Build 10064734002: 0.0%
Covered Lines: 11180
Relevant Lines: 12024

💛 - Coveralls

This adds wrapper classes for the messages handled by the codecs'
`decode` and `encode` functions.
Currently, these classes only provide a dictionary interface through
their `from_dict` and `as_dict` methods while this allows for future
transitions to a more pythonic interface.
@duesee duesee force-pushed the python_classes_for_messages branch from 91ab548 to ba55aff Compare July 23, 2024 18:57
@duesee duesee enabled auto-merge (rebase) July 23, 2024 18:59
@duesee duesee merged commit 057ac9c into duesee:main Jul 23, 2024
10 checks passed
@HenningHolmDE HenningHolmDE deleted the python_classes_for_messages branch July 23, 2024 19:03
@duesee duesee added this to the 12. Python bindings milestone Jul 29, 2024
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.

binding(Python): Use Python classes for codec messages
3 participants