convex-schema-parser
A simple dev tool which generates typed
Python and Rust api clients. It is intended to run alongside convex dev.E.g. you might have to work on multiple other frontends/backends which use your convex deployment and are not
TypeScript. You would then point convex-schema-parser via a .yaml to your local convex repo and where to write the generated clients. E.g.:convex-schema-parser dev uses this file and watches for changes in your convex repo. If the public convex interface changes it will update your generated clients. Rust will catch any potential errors and in Python with something like basedpyright you can follow the type-hints.For any language holds: you decide what the module name is and include it directly in your source-tree. This way you limit the possibility to forget to change/update some other backend of yours whilst making changes to your convex repo.
The
generate cmd can be used for CI.More is explained in detail in the repos README itself. Hope others might give feedback/make use of it (:
schema.ts and generates types for Python/Rust - ParsonosAI/convex-schema-parser