You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would add the following interfaces for interacting with a hosted Airbyte REST API (Cloud/OSS/Enterprise):
get_cloud_connection() - Get a handle for a remotely-hosted connection.
get_latest_read_result() - Get the latest result from a cloud connection sync. Should have properties like success (true/false), executed_at, completed_at, etc.
run_sync() - Remotely execute a sync operation.
Pseudocode mockup:
Locally Executed
Executed via Hosted Airbyte
github_source=get_source(
"source-github",
# ...
)
sql_cache=SnowflakeCache(
# ...
)
# Sync data to the cacheread_result=github_source.read(
cache=sql_cache,
)
# Get the repos datasetrepos_data=read_result.cache.streams["repos"]
# Iterate through recordsforrepoinrepos_data:
print(repo["name"])
# Get the Cloud connection objectconn=get_cloud_connection(
workspace_id="...",
connection_id="...",
api_key="...",
)
# Get the latest run resultread_result=conn.get_latest_read_result()
# We can check basic properties of the sync:ifnotread_result.success:
# We can invoke a Cloud sync from Python:read_result=conn.run_sync()
# After the follow-on feature ships, you'd be also # be able to read from remote destinations.# https://github.com/airbytehq/PyAirbyte/issues/110# Get the repos datasetrepos_data=read_result.cache.streams["repos"]
# Iterate through recordsforrepoinrepos_data:
print(repo["name"])
The text was updated successfully, but these errors were encountered:
aaronsteers
changed the title
Add basic interop with Airbyte Cloud and ability to run cloud jobs
Add basic interop with Airbyte Cloud and ability to orchestrate hosted sync jobs
Mar 1, 2024
aaronsteers
changed the title
Add basic interop with Airbyte Cloud and ability to orchestrate hosted sync jobs
Feature Request: Basic run_sync() interop with Airbyte Cloud/OSS/Enterprise
Mar 6, 2024
This would add the following interfaces for interacting with a hosted Airbyte REST API (Cloud/OSS/Enterprise):
get_cloud_connection()
- Get a handle for a remotely-hosted connection.get_latest_read_result()
- Get the latest result from a cloud connection sync. Should have properties likesuccess
(true/false),executed_at
,completed_at
, etc.run_sync()
- Remotely execute a sync operation.Pseudocode mockup:
The text was updated successfully, but these errors were encountered: