-
Notifications
You must be signed in to change notification settings - Fork 263
Python cffi #2354
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
base: canary
Are you sure you want to change the base?
Python cffi #2354
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
🌿 Preview your docs: https://boundary-preview-d8cfcda9-4537-4322-be01-b51446f56486.docs.buildwithfern.com |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Implement serialization/deserialization for Python CFFI client: - Phase 4.1: Core serde infrastructure for primitives - Created serde directory structure - Implemented type_map.py with TypeMap foundation - Added protobuf dependency and generated cffi_pb2.py - Implemented primitive encoding/decoding (string, int, float, bool, None) - All primitive round-trip tests pass - Phase 4.2: Collections support - Added list encoding/decoding with recursive value support - Added map encoding/decoding with string keys - Support for nested collections (lists of maps, maps of lists, etc.) - All collection round-trip tests pass Success criteria met: ✅ All primitive types encode/decode correctly ✅ Lists and maps with nested structures work ✅ Complex nested collections round-trip successfully 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
The test_unsupported_type_raises test was checking that lists and maps raise errors, but we implemented support for them in phase 4.2. Updated tests: - Added test_lists_and_maps_are_supported to verify collections work - Updated test_unsupported_type_raises to test actually unsupported types: - Custom objects - Sets - Tuples (not yet implemented) - Custom classes (without type map) 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
🌿 Preview your docs: https://boundary-preview-7eebde59-fad6-4314-a5b9-c01874cb00b2.docs.buildwithfern.com |
🌿 Preview your docs: https://boundary-preview-e13f5ac8-4efc-4a10-8821-c022f611688b.docs.buildwithfern.com |
…sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
🌿 Preview your docs: https://boundary-preview-9ee55578-e47f-4d4e-9c94-3a9ff67cbe0e.docs.buildwithfern.com |
A new language client based on the CFFI runtime. Because it relies on the baml runtime dynamic library, it doesn't need to use PyO3 or maturin. Pure Python code.
Phase 4/5 implemented.