Could CC be employed in a code generator? #1806
Replies: 1 comment
-
I think that cookiecutter works on a fixed set of files and directories, so I don't think it's possible to take an arbitrary list of x tables and generating separate files for each table and its schema. Therefore I think you might be better served by writing custom code for this use case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if it's Q&A or Ideas, but could Cookiecutter be used in a code generator?
I've never used CC, just looked thru the documentation.
From what I've understood, CC focuses on initiating projects - creating singular files like pyproject or gitignore.
Could I feed it with a set of models to generate a set of files of the same kind? Like set of classes representing a SQL database tables or JSONSchema objects?
Beta Was this translation helpful? Give feedback.
All reactions