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!: Refresh Python API and add error handling #3

Merged
merged 4 commits into from
May 24, 2024
Merged

Conversation

denehoffman
Copy link
Owner

This PR updates the python API to include some much-needed methods, as well as a reorganization under the hood. Now, all PyO3 code exists only in py-rustitude (except a little error conversion in rustitude-core). Additionally, errors are now implemented to handle every use of unwrap/expect in the core package. Nodes will be required to return Results, which can throw errors if calculations fail.

BREAKING CHANGE: Most of the standard functions which can fail will now pass on RustitudeErrors, so expect additional unwrapping in most use cases.

@denehoffman denehoffman merged commit 467caac into main May 24, 2024
13 checks passed
@denehoffman denehoffman deleted the python_reorg branch May 24, 2024 08:29
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.

None yet

1 participant