SdkSettings
Manages configuration settings for the Nutrient SDK. Provides functionality to load, export, and access various SDK settings through a type-safe registry system. This is a singleton class - use the static methods to access SDK settings.
from nutrient import SdkSettingsClass Methods
export
@classmethoddef export(cls, path: str) -> NoneStatic method to export the current SDK settings to a JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
path | str | The file path where the JSON settings will be saved. |
get_ai_augmenter_settings
@classmethoddef get_ai_augmenter_settings(cls) -> AiAugmenterSettingsGets the settings for aiaugmenter.
Returns: AiAugmenterSettings
get_cad_settings
@classmethoddef get_cad_settings(cls) -> CadSettingsGets the settings for CAD.
Returns: CadSettings
get_claude_api_settings
@classmethoddef get_claude_api_settings(cls) -> ClaudeApiSettingsGets the settings for claudeapi.
Returns: ClaudeApiSettings
get_content_extraction_settings
@classmethoddef get_content_extraction_settings(cls) -> ContentExtractionSettingsGets the settings for contentextraction.
Returns: ContentExtractionSettings
get_conversion_settings
@classmethoddef get_conversion_settings(cls) -> ConversionSettingsGets the settings for conversion.
Returns: ConversionSettings
get_custom_vlm_api_settings
@classmethoddef get_custom_vlm_api_settings(cls) -> CustomVlmApiSettingsGets the settings for customvlmapi.
Returns: CustomVlmApiSettings
get_document_layout_json_export_settings
@classmethoddef get_document_layout_json_export_settings(cls) -> DocumentLayoutJsonExportSettingsGets the settings for documentlayoutjsonexport.
Returns: DocumentLayoutJsonExportSettings
get_finalizer_settings
@classmethoddef get_finalizer_settings(cls) -> FinalizerSettingsGets the settings for finalizer.
Returns: FinalizerSettings
get_html_settings
@classmethoddef get_html_settings(cls) -> HtmlSettingsGets the settings for HTML.
Returns: HtmlSettings
get_image_settings
@classmethoddef get_image_settings(cls) -> ImageSettingsGets the settings for image.
Returns: ImageSettings
get_inference_layout_settings
@classmethoddef get_inference_layout_settings(cls) -> InferenceLayoutSettingsGets the settings for inferencelayout.
Returns: InferenceLayoutSettings
get_jbig2_settings
@classmethoddef get_jbig2_settings(cls) -> Jbig2SettingsGets the settings for jbig2.
Returns: Jbig2Settings
get_jpeg_settings
@classmethoddef get_jpeg_settings(cls) -> JpegSettingsGets the settings for jpeg.
Returns: JpegSettings
get_ocr_settings
@classmethoddef get_ocr_settings(cls) -> OcrSettingsGets the settings for ocr.
Returns: OcrSettings
get_open_ai_api_endpoint_settings
@classmethoddef get_open_ai_api_endpoint_settings(cls) -> OpenAIApiEndpointSettingsGets the settings for openaiapiendpoint.
Returns: OpenAIApiEndpointSettings
get_open_ai_languages_detection_settings
@classmethoddef get_open_ai_languages_detection_settings(cls) -> OpenAILanguagesDetectionSettingsGets the settings for openailanguagesdetection.
Returns: OpenAILanguagesDetectionSettings
get_open_ai_picture_alt_settings
@classmethoddef get_open_ai_picture_alt_settings(cls) -> OpenAIPictureAltSettingsGets the settings for openaipicturealt.
Returns: OpenAIPictureAltSettings
get_open_settings
@classmethoddef get_open_settings(cls) -> OpenSettingsGets the settings for opening documents.
Returns: OpenSettings
get_pdf_page_settings
@classmethoddef get_pdf_page_settings(cls) -> PdfPageSettingsGets the settings for PDF page.
Returns: PdfPageSettings
get_pdf_settings
@classmethoddef get_pdf_settings(cls) -> PdfSettingsGets the settings for PDF.
Returns: PdfSettings
get_presentation_settings
@classmethoddef get_presentation_settings(cls) -> PresentationSettingsGets the settings for presentation.
Returns: PresentationSettings
get_reading_order_settings
@classmethoddef get_reading_order_settings(cls) -> ReadingOrderSettingsGets the settings for readingorder.
Returns: ReadingOrderSettings
get_segmenter_settings
@classmethoddef get_segmenter_settings(cls) -> SegmenterSettingsGets the settings for segmenter.
Returns: SegmenterSettings
get_spreadsheet_settings
@classmethoddef get_spreadsheet_settings(cls) -> SpreadsheetSettingsGets the settings for spreadsheet.
Returns: SpreadsheetSettings
get_table_recognition_settings
@classmethoddef get_table_recognition_settings(cls) -> TableRecognitionSettingsGets the settings for tablerecognition.
Returns: TableRecognitionSettings
get_tiff_settings
@classmethoddef get_tiff_settings(cls) -> TiffSettingsGets the settings for tiff.
Returns: TiffSettings
get_vision_descriptor_settings
@classmethoddef get_vision_descriptor_settings(cls) -> VisionDescriptorSettingsGets the settings for visiondescriptor.
Returns: VisionDescriptorSettings
get_vision_settings
@classmethoddef get_vision_settings(cls) -> VisionSettingsGets the settings for vision.
Returns: VisionSettings
get_words_detection_settings
@classmethoddef get_words_detection_settings(cls) -> WordsDetectionSettingsGets the settings for wordsdetection.
Returns: WordsDetectionSettings
get_word_settings
@classmethoddef get_word_settings(cls) -> WordSettingsGets the settings for Word documents.
Returns: WordSettings
load
@classmethoddef load(cls, path: str) -> NoneStatic method to load SDK settings from a JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
path | str | The file path to the JSON settings file. |
Methods
export_instance
def export_instance(self, path: str) -> NoneExports the current SDK settings to a JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
path | str | The file path where the JSON settings will be saved. |
load_instance
def load_instance(self, path: str) -> NoneLoads SDK settings from a JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
path | str | The file path to the JSON settings file. |