Split Generated Code into Multiple Files #2436
Labels
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p2
🚀 Feature Request
Affected Languages
TypeScript
orJavascript
Python
Java
(haven't checked)C#
,F#
, ...) (haven't checked)General Information
Description
The
cdktf
provider for AWS generates a 19 MB__init__.py
file which contains all the classes for the Terraform AWS Provider. You can check it with this project which publishes a prebuilt PyPi package.According to this issue, this might lead to a subpar development experience in certain IDEs. At least in PyCharm, it doesn't work out of the box. After setting custom indexing settings for intellisense it seems to work, but the indexing process is still slow. I don't know how other IDEs are behaving.
Copied from the issue:
Proposed Solution
Without having looked at this in detail, one option could be to somehow provide an option to create submodules for each input class / namespace. Is this possible already, can't really tell from the docs?
This is possibly related to #1919
The text was updated successfully, but these errors were encountered: