TransportAPIOptions

from carmen_cloud_client import TransportAPIOptions

Options for configuring the TransportAPI client.

Attributes

disable_iso_code : Optional[bool] Deprecated: use disable_additional_code. Legacy additional-code switch for the iso and eu-rail code types; sends X-Disable-Iso-Code. On OCR engines from 7.3.20.46 it is only a fallback, used when disable_additional_code is not set. disable_checksum_check : Optional[bool] Deprecated: sends the legacy X-Disable-Checksum-Check header, kept for older OCR engines. From 7.3.20.46 the engine handles checksum checks internally and this option has no effect. enable_full_us_accr_code : Optional[bool] Enables full US ACCR code recognition; sends X-Enable-Full-Us-Accr-Code. Applies only to the truck code type. disable_additional_code : Optional[bool] Disables additional code reading (such as the ISO equipment/type code) for the iso and eu-rail code types; sends X-Disable-Additional-Code. Supported by OCR engines from 7.3.20.46. When set (True or False) it takes precedence over disable_iso_code. None (the default) sends nothing.

Fieldsโ€‹

NameTypeDefault
api_keystrโ€”
typeCodeTypeโ€”
endpointOptional[str]None
cloud_service_regionOptional[CloudServiceRegion]None
disable_iso_codeOptional[bool]False
disable_checksum_checkOptional[bool]False
enable_full_us_accr_codeOptional[bool]False
disable_image_resizingOptional[bool]False
enable_wide_range_analysisOptional[bool]False
max_readsOptional[int]1
retry_countOptional[int]2
disable_additional_codeOptional[bool]None