Home / Companies / SurrealDB / Blog / Post Details
Content Deep Dive

How we improved the Python SDK for our 1.0 stable version

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Maxwell Flitton
Word Count
515
Language
English
Hacker News Points
-
Summary

The new release of the Python SDK for SurrealDB introduces several enhancements aimed at improving performance, consistency, and integration capabilities. This update ensures the interface for WebSockets and HTTP requests aligns with other SurrealDB SDKs, such as the JavaScript SDK, and supports both blocking and asynchronous implementations to cater to a variety of user needs. Notably, the SDK transitions from JSON to CBOR serialization, offering performance advantages and flexibility with unstructured data, while also supporting native Python datetime objects for seamless integration. The release emphasizes stability with 100% test coverage across isolated classes for each request method, resulting in 5,675 tests covering Python versions 3.9 to 3.13 against various SurrealDB versions. Additionally, the SDK facilitates easy contribution by allowing users to download the source code and run tests in a debugger to observe data transformations in real-time, promoting transparency and ease of use.