- Fixed incorrect encoding for defined type aliases over primitive types
- Fixed decode generation for fixed-size arrays of primitive types
- Fixed account decode generation for
Vec<defined struct>andVec<defined enum>fields - Fixed decode passthrough handling for non-encodable remainder arrays
- Fixed
errors/__init__.pygeneration for single-program clients with custom errors
- Added regression tests for primitive aliases, fixed-size primitive arrays, vector decode paths, remainder arrays, and multi-program errors index generation
- Fixed genpy2 script for ES module compatibility and imports
- Updated API support to Codama 1.3.7
- Improved TypeScript configuration for better module resolution
- Project has been renamed from "Copyma" to "Codama-py" to better reflect its purpose as a Python client generator for Codama IDLs
- All package references, documentation, and examples have been updated to use the new name
This is a beta release of Codama-py, a Solana Python client generator for Codama IDLs.
- Added
filesfield to package.json to explicitly specify published files
This is a beta release of Codama-py, a Solana Python client generator for Codama IDLs.
- Generate complete Python client structure with accounts, instructions, types, and errors modules
- Automatically generate Python clients from Codama IDL files
- Support for AnchorPy-compatible code generation with extended data structures
- Improved enum type layout and serialization handling
- Enhanced code generation quality and consistency
- Complex IDL structures might require manual adjustments
pnpm install codama-py@0.1.1-betaimport { renderVisitor } from 'codama-py';
const pathToGeneratedFolder = path.join(__dirname, 'clients', 'python', 'src', 'generated');
codama.accept(renderVisitor(pathToGeneratedFolder));The tool is under active development. Please report any issues or provide feedback.