-
Notifications
You must be signed in to change notification settings - Fork 3
Add documentation for Python configuration options #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🌿 Preview your docs: https://fernv2-preview-796806ad-46a7-44e8-b0d7-7841f055949b.docs.buildwithfern.com |
| - name: fernapi/fern-python | ||
| version: 0.6.6 | ||
| config: | ||
| include_validators: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you show can example of using the client.name property since that is the most used config!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! would that look like this?
config:
client:
filename: "my_custom_client.py"
class_name: "MyClient"
exported_filename: "my_client.py"
exported_class_name: "APIClient"
and actually, the subfields for the client option aren't documented on this page. something to add?
|
🌿 Preview your docs: https://fernv2-preview-28b45747-5360-414c-9473-0fe0217cd1c5.docs.buildwithfern.com |
| filename: my_custom_client.py | ||
| class_name: MyClient | ||
| exported_filename: my_client.py | ||
| exported_class_name: APIClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devalog can you try
client:
class_name: `YourClient`
|
🌿 Preview your docs: https://fernv2-preview-7cd7cbe4-f86d-453b-a6d5-2310e4b6ddc5.docs.buildwithfern.com |
Fill out
configuration.mdxfile for the Python SDK based on this README (just the SDK Generator Configuration section) and the Python config classI didn't add
client_class_nameandclient_filenameto this file because they're marked as deprecated. I also thinkuse_typeddict_requests_for_file_uploadshould be removed based on its description but would like confirmation!One additional note –
skip_formattingdefaults to false per the config class, but readme says default is true. I putfalsein the file.