<@U04S8PLJWMT> what should i put in pyairbyte conf...
# ask-ai
k
@kapa.ai what should i put in pyairbyte config dict given the following yaml ? wait for my next prompt pls i'll send code
k
Of course! Please send the YAML code you want to use, and I’ll review it to help you determine what should go in the PyAirbyte config dictionary. I’ll wait for your next prompt.
k
version: 6.48.15 type: DeclarativeSource description: Source for the ticktick openapi endpoint at https://developer.ticktick.com/ check: type: CheckStream stream_names: - projects definitions: oauth_authenticator: type: OAuthAuthenticator client_id: "{{ config.authorization.client_id }}" client_secret: "{{ config.authorization.client_secret) }}" grant_type: client_credentials access_token_value: "{{ config.authorization.client_access_token }}" scopes: - "tasks:" - read bearer_token: type: BearerAuthenticator api_token: "{{ config.authorization.bearer_token }}" base_requester: type: HttpRequester url_base: https://api.ticktick.com authenticator: type: SelectiveAuthenticator authenticator_selection_path: ["authorization", "auth_type"] authenticators: Oauth: "#/definitions/oauth_authenticator" Token: "#/definitions/bearer_token" # authenticators: # Oauth: # type: OAuthAuthenticator # scopes: # - "tasks:" # - read # grant_type: client_credentials # client_id: "{{ config['credentials']['client_id'] }}" # client_secret: "{{ config['credentials']['client_secret'] }}" # Token: # type: BearerAuthenticator # api_token: "{{ config['credentials']['access_token'] }}" error_handler: type: DefaultErrorHandler streams: tasks: type: DeclarativeStream name: tasks retriever: type: SimpleRetriever decoder: type: JsonDecoder requester: $ref: "#/definitions/base_requester" path: /open/v1/project/{{ stream_partition['parent_id'] }}/data http_method: GET record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: - tasks record_filter: type: RecordFilter condition: "{{ record }}" partition_router: type: SubstreamPartitionRouter parent_stream_configs: - type: ParentStreamConfig parent_key: id partition_field: parent_id stream: $ref: "#/definitions/streams/projects" primary_key: - id schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/tasks" projects: type: DeclarativeStream name: projects retriever: type: SimpleRetriever decoder: type: JsonDecoder requester: $ref: "#/definitions/base_requester" path: /open/v1/project/ record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: [] record_filter: type: RecordFilter condition: "{{ not record.closed }}" schema_normalization: Default primary_key: - id schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/projects" streams: - $ref: "#/definitions/streams/projects" - $ref: "#/definitions/streams/tasks" spec: type: Spec advanced_auth: auth_flow_type: oauth2.0 predicate_key: - authorization - auth_type predicate_value: Oauth oauth_config_specification: complete_oauth_output_specification: required: - access_token properties: access_token: type: string path_in_connector_config: - authorization - client_access_token oauth_connector_input_specification: scope: "tasks: read" consent_url: >- https://ticktick.com/oauth/authorize?scope={{scope_value | urlEncode}}&client_id={{client_id_value}}&state={{state}}&redirect_uri={{redirect_uri_value}}&response_type=code extract_output: - access_token access_token_url: https://ticktick.com/oauth/token access_token_params: code: "{{ auth_code_value }}" scope: "{{ scope_value | urlEncode }}" grant_type: authorization_code redirect_uri: "{{ redirect_uri_value }}" access_token_headers: Content-Type: application/x-www-form-urlencoded Authorization: >- Basic {{ (client_id_value ~ ':' ~ client_secret_value) | b64encode }} complete_oauth_server_input_specification: required: - client_id - client_secret properties: client_id: type: string client_secret: type: string complete_oauth_server_output_specification: required: - client_id - client_secret properties: client_id: type: string path_in_connector_config: - authorization - client_id client_secret: type: string path_in_connector_config: - authorization - client_secret connection_specification: type: object $schema: http://json-schema.org/draft-07/schema# properties: authorization: type: object title: Authentication Type oneOf: - title: OAuth2 type: object required: - auth_type - client_id - client_secret properties: auth_type: type: string const: Oauth order: 0 client_id: title: Client ID type: string description: The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here/a. airbyte_secret: true client_secret: title: Client Secret type: string description: The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here/a. airbyte_secret: true client_access_token: title: Access Token type: string description: Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here/a. airbyte_secret: true - type: object title: Bearer Token (from Oauth2) required: - auth_type - bearer_token properties: auth_type: type: string const: Token order: 0 bearer_token: title: Bearer Token type: string description: The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">here/a. examples: - '{ "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... }' airbyte_secret: true additionalProperties: true metadata: assist: {} testedStreams: tasks: hasRecords: true streamHash: 614b09c66bbaf39cfd22bf6fbc3b5c8d45bbe19d hasResponse: true primaryKeysAreUnique: true primaryKeysArePresent: true responsesAreSuccessful: true projects: hasRecords: true streamHash: f302a05535246c68b860f6b24d368272c73ddb28 hasResponse: true primaryKeysAreUnique: true primaryKeysArePresent: true responsesAreSuccessful: true autoImportSchema: tasks: true projects: true schemas: tasks: type: object $schema: http://json-schema.org/schema# required: - id properties: id: type: string desc: type: - string - "null" etag: type: - string - "null" kind: type: - string - "null" tags: type: - array - "null" items: type: - string - "null" items: type: - array - "null" items: type: - object - "null" properties: id: type: - string - "null" title: type: - string - "null" status: type: - number - "null" isAllDay: type: - boolean - "null" timeZone: type: - string - "null" sortOrder: type: - number - "null" title: type: - string - "null" status: type: - number - "null" content: type: - string - "null" dueDate: type: - string - "null" columnId: type: - string - "null" isAllDay: type: - boolean - "null" priority: type: - number - "null" timeZone: type: - string - "null" projectId: type: - string - "null" sortOrder: type: - number - "null" startDate: type: - string - "null" repeatFlag: type: - string - "null" additionalProperties: true projects: type: object $schema: http://json-schema.org/schema# required: - id properties: id: type: string kind: type: - string - "null" name: type: - string - "null" color: type: - string - "null" closed: type: - boolean - "null" groupId: type: - string - "null" viewMode: type: - string - "null" sortOrder: type: - number - "null" permission: type: - string - "null" additionalProperties: true api_budget: type: HTTPAPIBudget policies: - type: MovingWindowCallRatePolicy rates: - limit: 3 interval: PT1S - limit: 60 interval: PT1M matchers: - method: GET url_path_pattern: .* status_codes_for_ratelimit_hit: - 503 - 500 - 429 @kapa.ai
k
A message from kapa.ai
Given your YAML, the config dictionary for PyAirbyte should match the structure defined in the
connection_specification
under the
authorization
property. You have two authentication options: OAuth2 and Bearer Token. The config dict should be structured as follows, depending on which authentication method you want to use: ### 1. OAuth2 Authentication
Copy code
python config = {     "authorization": {         "auth_type": "Oauth",         "client_id": "<YOUR_CLIENT_ID>",         "client_secret": "<YOUR_CLIENT_SECRET>",         "client_access_token": "<YOUR_ACCESS_TOKEN>"     } }
-
auth_type
must be
"Oauth"
-
client_id
,
client_secret
, and
client_access_token
are required and should be filled with your credentials. ### 2. Bearer Token Authentication
Copy code
python config = {     "authorization": {         "auth_type": "Token",         "bearer_token": "<YOUR_BEARER_TOKEN>"     } }
-
auth_type
must be
"Token"
-
bearer_token
is required and should be filled with your token. Note: - The config dict must have an
authorization
key, which is an object matching one of the two schemas above. - The field names and structure are dictated by the
connection_specification
in your YAML, and this matches Airbyte's standard for config-based connectors using SelectiveAuthenticator and OAuth/Bearer authentication options. This structure is directly derived from the YAML's
connection_specification
and authenticator definitions, as described in the Airbyte documentation for config-based authentication schemas [Authentication](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/authentication).
k
@kapa.ai i got error when using the bearer token --------------------------------------------------------------------------- AirbyteConnectorCheckFailedError Traceback (most recent call last) Cell In[21], line 23 8 config = { 9 "authorization": { 10 "auth_type": "Token", 11 "bearer_token": f"{os.getenv("TICKTICK_TOKEN")}" 12 } 13 } 16 source = ab.get_source( 17 name='ticktick', 18 config=config, 19 source_manifest=ticktick_yaml, 20 streams="*" 21 ) ---> 23 source.check() File ~/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py:370, in ConnectorBase.check(self) 364 raise exc.AirbyteConnectorCheckFailedError( 365 connector_name=self.name, 366 message="The connector
check
operation did not return a status.", 367 log_text=self._last_log_messages, 368 ) 369 except exc.AirbyteConnectorFailedError as ex: --> 370 raise exc.AirbyteConnectorCheckFailedError( 371 connector_name=self.name, 372 original_exception=ex, 373 ) from None AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError) ------------------------------------------------------------ AirbyteConnectorCheckFailedError: Connector check failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: Connector failed. (AirbyteConnectorFailedError) ------------------------------------------------------------ AirbyteConnectorFailedError: Connector failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: 'str' object has no attribute 'value' Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log
k
A message from kapa.ai
A message from kapa.ai
I'm sorry, but your last message appears to be incomplete ("i got error when using the"). Could you please provide the full error message or clarify your question? This will help me give you a more accurate and helpful answer based on the available Airbyte documentation.
k
@kapa.ai i mean i got this error --------------------------------------------------------------------------- AirbyteConnectorCheckFailedError Traceback (most recent call last) Cell In[21], <vscode-notebook-cell:?execution_count=21&line=23|line 23> 8 config = { 9 "authorization": { 10 "auth_type": "Token", 11 "bearer_token": f"{os.getenv("TICKTICK_TOKEN")}" 12 } 13 } 16 source = ab.get_source( 17 name='ticktick', 18 config=config, 19 source_manifest=ticktick_yaml, 20 streams="*" 21 ) ---> <vscode-notebook-cell:?execution_count=21&line=23|23> source.check() File ~/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py:370, in ConnectorBase.check(self) 364 raise exc.AirbyteConnectorCheckFailedError( 365 connector_name=self.name, 366 message="The connector
check
operation did not return a status.", 367 log_text=self._last_log_messages, 368 ) 369 except exc.AirbyteConnectorFailedError as ex: --> 370 raise exc.AirbyteConnectorCheckFailedError( 371 connector_name=self.name, 372 original_exception=ex, 373 ) from None AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError) ------------------------------------------------------------ AirbyteConnectorCheckFailedError: Connector check failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: Connector failed. (AirbyteConnectorFailedError) ------------------------------------------------------------ AirbyteConnectorFailedError: Connector failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: 'str' object has no attribute 'value' Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log
k
Based on your error message:
Copy code
Caused by: 'str' object has no attribute 'value'
and your config:
Copy code
python config = {     "authorization": {         "auth_type": "Token",         "bearer_token": f"{os.getenv('TICKTICK_TOKEN')}"     } }
This error suggests that somewhere in the connector code or manifest, a string is being accessed as if it were an object with a
.value
attribute. This is not expected for a simple string like a bearer token. ### What to Check 1. Config Structure Your config structure matches the YAML's
connection_specification
for the Bearer Token path, so the config itself appears correct. 2. Manifest and Authenticator The YAML uses a
BearerAuthenticator
with:
Copy code
yaml    api_token: "{{ config.authorization.bearer_token }}"
This is the correct way to reference a string value from the config for the BearerAuthenticator, according to Airbyte documentation [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). 3. Possible Source of Error The error
'str' object has no attribute 'value'
is not documented in the official Airbyte docs for config-based connectors or BearerAuthenticator. This suggests the issue may be in the connector implementation or in how the config is being parsed/interpreted by PyAirbyte or the connector runtime. ### Next Steps - Check the Log File: The error message points to a log file for more details:
Copy code
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log
Reviewing this log may provide more context about where the
.value
attribute is being accessed. - Check for Typo or Manifest Issue: Double-check your YAML and config for any typos or mismatches. For example, ensure you are not accidentally passing an object where a string is expected, or vice versa. - Connector Version: If you are using a custom or in-development connector, there may be a bug in the code that expects an object with a
.value
attribute instead of a string. This is not a standard requirement for BearerAuthenticator in Airbyte's config-based connectors [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). ### Summary - Your config structure appears correct for the Bearer Token path. - The error is not explained in the official Airbyte documentation and may be due to a bug or misconfiguration in the connector code or manifest. - Check the referenced log file for more details on the error's origin. If you can share the relevant part of the log file or more details from the error trace, I may be able to provide more specific guidance. The knowledge sources do not contain explicit information about this specific
'str' object has no attribute 'value'
error.
A message from kapa.ai
Based on the knowledge sources provided, your config dictionary for Bearer Token authentication is structured correctly according to the Airbyte YAML specification for config-based connectors. The
BearerAuthenticator
expects an
api_token
string, and your config:
Copy code
python config = {     "authorization": {         "auth_type": "Token",         "bearer_token": "<YOUR_BEARER_TOKEN>"     } }
matches the expected schema, where
bearer_token
is mapped to
api_token
in the authenticator definition [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). However, the error message:
Copy code
Caused by: 'str' object has no attribute 'value'
is not documented in the official Airbyte documentation, and the knowledge sources do not provide explicit information about this specific error. The documentation does not mention that a string value for the bearer token should have a
.value
attribute, nor does it describe this as a requirement for BearerAuthenticator. What you should do: - Double-check that your environment variable
TICKTICK_TOKEN
is set and not
None
or an empty string. - Review the referenced log file for more details, as the error may be caused by an implementation detail or a bug in the connector, which is not covered in the official documentation. If you continue to encounter this error, it may be necessary to consult the connector's implementation or seek support from the Airbyte community, as the knowledge sources do not contain enough information to resolve this specific
'str' object has no attribute 'value'
error.
k
so this connector yaml is unpublished is a custom one. is there any documentation about not supported case liek so @kapa.ai
k
A message from kapa.ai
The knowledge sources do not contain explicit documentation about unsupported cases or limitations when using unpublished or custom connector YAML files in Airbyte. The official documentation focuses on the structure, supported authenticators, and configuration for config-based connectors, but does not address error handling or compatibility issues specific to unpublished or custom connectors. If you encounter issues with custom YAML connectors—such as unexpected errors or unsupported features—these are not covered in the provided documentation. For such cases, you may need to consult community forums, GitHub issues, or seek help from the Airbyte community, as the official docs do not provide guidance on troubleshooting unpublished or custom connector YAMLs or on unsupported scenarios.
k
@kapa.ai can you confirm if pyairbyte is able to run custom low code connector using yaml that is not published to the marketplace ?
k
A message from kapa.ai
Yes, you can use PyAirbyte to run a custom low-code connector using a YAML manifest that is not published to the marketplace. The official Airbyte tutorial demonstrates how to export a YAML file from the Connector Builder UI and use it directly in a Jupyter Notebook with PyAirbyte by passing the YAML as the
source_manifest
argument to the
get_source()
method. This allows you to use custom connectors locally without needing to publish them to the Airbyte Marketplace [How to add custom source to PyAirbyte using the no-code builder](https://airbyte.com/tutorials/how-to-add-custom-source-to-pyairbyte-using-the-no-code-builder). If you encounter issues, they may be due to limitations or bugs in the connector definition or PyAirbyte itself, but the documented workflow supports running unpublished custom YAML connectors.
k
think i can trace better the previou issue. so looks like pyairbyte is trying to source config for advance_auth which shouldnt be the case cause my config is using Token ? @kapa.ai Exception has occurred: AirbyteConnectorCheckFailedError (note: full exception trace is shown but execution is paused at: _run_module_as_main) Connector check failed. (AirbyteConnectorCheckFailedError) ------------------------------------------------------------ AirbyteConnectorCheckFailedError: Connector check failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: Connector failed. (AirbyteConnectorFailedError) ------------------------------------------------------------ AirbyteConnectorFailedError: Connector failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: 'str' object has no attribute 'value' Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 469, in _execute try: message: AirbyteMessage = AirbyteMessage.model_validate_json(json_data=line) if progress_tracker and message.record: stream_name = message.record.stream progress_tracker.tally_bytes_read( bytes_read=len(line) - envelope_size - len(stream_name), stream_name=stream_name, ) self._peek_airbyte_message(message) yield message except Exception: # This is likely a log message, so log it as INFO. self._print_info_message(line) File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_executors/declarative.py", line 115, in execute yield from source_entrypoint.run(parsed_args) File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte_cdk/entrypoint.py", line 168, in run source_spec: ConnectorSpecification = self.source.spec(self.logger) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 409, in spec self._spec_component.generate_spec() if self._spec_component else super().spec(logger) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte_cdk/sources/declarative/spec/spec.py", line 57, in generate_spec self.advanced_auth.auth_flow_type = self.advanced_auth.auth_flow_type.value # type: ignore # We know this is always assigned to an AuthFlow which has the auth_flow_type field ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'value' During handling of the above exception, another exception occurred: File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 338, in check if msg.type == Type.CONNECTION_STATUS and msg.connectionStatus: if msg.connectionStatus.status != Status.FAILED: rich.print( f"Connection check succeeded for
{self.name}
.", file=sys.stderr, ) log_connector_check_result( name=self.name, state=EventState.SUCCEEDED, ) return log_connector_check_result( name=self.name, state=EventState.FAILED, ) # Give logs a chance to be flushed. sleep(1) raise exc.AirbyteConnectorCheckFailedError( connector_name=self.name, help_url=self.docs_url, context={ "failure_reason": msg.connectionStatus.message, }, ) raise exc.AirbyteConnectorCheckFailedError( File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 496, in _execute connector_name=self.name, log_text=self._last_log_messages, original_exception=e, ) from None airbyte.exceptions.AirbyteConnectorFailedError: Connector failed. (AirbyteConnectorFailedError) ------------------------------------------------------------ AirbyteConnectorFailedError: Connector failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: 'str' object has no attribute 'value' Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log During handling of the above exception, another exception occurred: File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 370, in check connector_name=self.name, original_exception=ex, ) from None File "/home/ubuntu/dev/ticktick_dbt/EL/main.py", line 26, in <module> source.check() File "/usr/lib/python3.12/runpy.py", line 88, in _run_code exec(code, run_globals) File "/usr/lib/python3.12/runpy.py", line 198, in _run_module_as_main (Current frame) return _run_code(code, main_globals, None, airbyte.exceptions.AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError) ------------------------------------------------------------ AirbyteConnectorCheckFailedError: Connector check failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: Connector failed. (AirbyteConnectorFailedError) ------------------------------------------------------------ AirbyteConnectorFailedError: Connector failed. Please review the log file for more information. Connector Name: 'ticktick' ------------------------------------------------------------ Caused by: 'str' object has no attribute 'value' Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log
k
A message from kapa.ai
Based on the knowledge sources, your analysis is correct: the error
'str' object has no attribute 'value'
is occurring because the connector code is trying to access a
.value
attribute on a string, which is not valid. This happens during the processing of the
advanced_auth
section in your YAML, even though your config is using the
"Token"
authentication path and not OAuth. The Airbyte documentation describes that the
advanced_auth
section is used to provide an improved user experience for OAuth flows, but it should only be applicable when the config matches the
predicate_key
and
predicate_value
specified in the YAML (in your case, when
authorization.auth_type
is
"Oauth"
). If your config uses
"Token"
, the advanced auth flow should not be triggered [AuthFlow object reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AuthFlow). However, the knowledge sources do not provide details about this specific error or about a bug where the connector attempts to process
advanced_auth
even when the predicate does not match. There is no documentation about this being a known or unsupported case. Summary: - Your config and YAML are structured according to the documentation. - The error is not explained in the official docs and may be due to a bug in the Airbyte CDK or PyAirbyte when handling custom YAML connectors with both OAuth and Token options. - The knowledge sources do not contain enough information to confirm if this is a supported or unsupported case, nor do they provide a workaround for this specific issue. If you need to proceed, you may need to consult the Airbyte community or GitHub issues for further troubleshooting, as the documentation does not address this scenario.
k
@kapa.ai can you confirm if pyairbyte supports custom connector yaml with api_budget block or not
k
A message from kapa.ai
Based on the knowledge sources, Airbyte’s config-based connector framework fully supports the use of the
api_budget
block in custom YAML manifests. The documentation provides detailed examples and schema references for defining
api_budget
with various rate limiting policies (such as
FixedWindowCallRatePolicy
,
MovingWindowCallRatePolicy
, and
UnlimitedCallRatePolicy
) in YAML files for connectors, including custom ones [Rate limiting (API Budget)](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget). However, the knowledge sources do not explicitly mention PyAirbyte’s support for the
api_budget
block in custom YAML connectors. While PyAirbyte is designed to run custom YAML connectors exported from the Connector Builder, there is no direct documentation confirming or denying that the
api_budget
block is fully supported when running such connectors via PyAirbyte. In summary: - Airbyte YAML connectors support
api_budget
blocks. - There is no explicit confirmation in the knowledge sources about PyAirbyte’s support for
api_budget
in custom YAML connectors. - If you encounter issues, they may be due to limitations not covered in the official documentation.