Skip to content

Commit 6719844

Browse files
committed
document lazy_imports param
1 parent d2e5490 commit 6719844

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fern/products/sdks/overview/python/configuration.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ When enabled, generates utility methods for working with union types, including
107107
Feature flag that removes the usage of request objects, and instead uses parameters in function signatures where possible.
108108
</ParamField>
109109

110+
<ParamField path="lazy_imports" type="bool" default="true" required={false} toc={true}>
111+
Enables lazy loading of client imports. When enabled, modules and classes are imported only when first accessed rather than at package initialization. This reduces memory footprint when using a small portion of a large API, at the cost of a latency penalty when first accessing a client.
112+
113+
Set to `false` to restore eager loading behavior.
114+
</ParamField>
115+
110116
<ParamField path="package-name" type="string" default="null" required={false} toc={true}>
111117

112118
Specifies the Python package name that users will import your generated client

0 commit comments

Comments
 (0)