-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1a3909
commit 6c9dab8
Showing
9 changed files
with
120 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
"""Imported classes from the Airbyte API. | ||
Any classes that are imported from the Airbyte API should be imported here. | ||
This allows for easy access to these classes in other modules, especially | ||
for type hinting purposes. | ||
Design Guidelines: | ||
- No modules except `api_util` and `api_imports` should import from `airbyte_api`. | ||
- If a module needs to import from `airbyte_api`, it should import from `api_imports` (this module) | ||
instead. | ||
- This module is divided into two sections: internal-use classes and public-use classes. | ||
- Public-use classes should be carefully reviewed to ensure that they are necessary for public use | ||
and that we are willing to support them as part of PyAirbyte. | ||
""" | ||
# Ignore import sorting in this file. Manual grouping is more important. | ||
# ruff: noqa: I001 | ||
|
||
from __future__ import annotations | ||
|
||
# Internal-Use Classes | ||
|
||
# These classes are used internally to cache API responses. | ||
from airbyte_api.models import ( | ||
ConnectionResponse, | ||
DestinationResponse, | ||
JobResponse, | ||
) | ||
|
||
# Public-Use Classes | ||
|
||
# This class is used to represent the status of a job. It may be used in | ||
# type hints for public functions that return a job status. | ||
from airbyte_api.models import JobStatusEnum # Alias not needed | ||
|
||
|
||
__all__: list[str] = [ | ||
"ConnectionResponse", | ||
"DestinationResponse", | ||
"JobResponse", | ||
"JobStatusEnum", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.