pydantic-core package is built with Rust and delivers
significant performance improvements, better correctness, and more consistent
classes, methods, decorators and settings.
Migration guidance
If you are using the Circle Python SDK and don’t want to migrate your code, you should not upgrade your SDK version past major version 8. Version 8 is in maintenance mode and will only receive essential updates such as fixes for critical security flaws. If you want to upgrade to major version 9 and above, you may need to make some changes to your code. Review the following sections to see if you are affected.No impact
Unless noted in the following section, function signatures in the Python SDK are unchanged, including:- API methods
- Core features such as wallet creation and transaction processing
Summary of changes
The method names of model serialization methods that convert between model objects and data formats are changing to match the Pydantic v2 naming pattern. Deserialization methods are typically used to build API request payloads, where serialization methods are used to parse API responses:model.from_dict(): deserialize a Python dictionary into a model instancemodel.from_json(): deserialize a JSON string into a model instancemodel.to_dict(): serialize a model instance to a Python dictionarymodel.to_json(): serialize a model instance to a JSON string