-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[Data] Expose datasources via package exports #60645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
400Ping
wants to merge
6
commits into
ray-project:master
Choose a base branch
from
400Ping:data/export-datasource
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+253
−112
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3677118
Expose datasources via package exports
400Ping 955d078
Merge branch 'master' into data/export-datasource
bveeramani 74bc9ff
fix
400Ping 6de0608
fix huggingfacedatasource logic
400Ping 48ff0b7
Merge branch 'master' into data/export-datasource
400Ping f99855c
fix pre-commit error
400Ping File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,127 @@ | ||
| """Ray Data internal datasource package. | ||
|
|
||
| This package encapsulates datasources and datasinks. Import from this package | ||
| instead of individual modules for a simpler API. | ||
| """ | ||
|
|
||
| from ray.data._internal.datasource.audio_datasource import AudioDatasource | ||
| from ray.data._internal.datasource.avro_datasource import AvroDatasource | ||
| from ray.data._internal.datasource.bigquery_datasink import BigQueryDatasink | ||
| from ray.data._internal.datasource.bigquery_datasource import BigQueryDatasource | ||
| from ray.data._internal.datasource.binary_datasource import BinaryDatasource | ||
| from ray.data._internal.datasource.clickhouse_datasink import ( | ||
| ClickHouseDatasink, | ||
| ClickHouseTableSettings, | ||
| SinkMode, | ||
| ) | ||
| from ray.data._internal.datasource.clickhouse_datasource import ClickHouseDatasource | ||
| from ray.data._internal.datasource.csv_datasink import CSVDatasink | ||
| from ray.data._internal.datasource.csv_datasource import CSVDatasource | ||
| from ray.data._internal.datasource.databricks_credentials import ( | ||
| DatabricksCredentialProvider, | ||
| EnvironmentCredentialProvider, | ||
| StaticCredentialProvider, | ||
| build_headers, | ||
| request_with_401_retry, | ||
| resolve_credential_provider, | ||
| ) | ||
| from ray.data._internal.datasource.databricks_uc_datasource import ( | ||
| DatabricksUCDatasource, | ||
| ) | ||
| from ray.data._internal.datasource.delta_sharing_datasource import ( | ||
| DeltaSharingDatasource, | ||
| ) | ||
| from ray.data._internal.datasource.hudi_datasource import HudiDatasource | ||
| from ray.data._internal.datasource.huggingface_datasource import HuggingFaceDatasource | ||
| from ray.data._internal.datasource.iceberg_datasink import IcebergDatasink | ||
| from ray.data._internal.datasource.iceberg_datasource import IcebergDatasource | ||
| from ray.data._internal.datasource.image_datasink import ImageDatasink | ||
| from ray.data._internal.datasource.image_datasource import ImageDatasource | ||
| from ray.data._internal.datasource.json_datasink import JSONDatasink | ||
| from ray.data._internal.datasource.json_datasource import ( | ||
| ArrowJSONDatasource, | ||
| PandasJSONDatasource, | ||
| ) | ||
400Ping marked this conversation as resolved.
Show resolved
Hide resolved
400Ping marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| from ray.data._internal.datasource.kafka_datasource import ( | ||
| KafkaAuthConfig, | ||
| KafkaDatasource, | ||
| ) | ||
| from ray.data._internal.datasource.lance_datasink import LanceDatasink | ||
| from ray.data._internal.datasource.lance_datasource import LanceDatasource | ||
| from ray.data._internal.datasource.mcap_datasource import MCAPDatasource, TimeRange | ||
| from ray.data._internal.datasource.mongo_datasink import MongoDatasink | ||
| from ray.data._internal.datasource.mongo_datasource import MongoDatasource | ||
| from ray.data._internal.datasource.numpy_datasink import NumpyDatasink | ||
| from ray.data._internal.datasource.numpy_datasource import NumpyDatasource | ||
| from ray.data._internal.datasource.parquet_datasink import ParquetDatasink | ||
| from ray.data._internal.datasource.parquet_datasource import ParquetDatasource | ||
| from ray.data._internal.datasource.range_datasource import RangeDatasource | ||
| from ray.data._internal.datasource.sql_datasink import SQLDatasink | ||
| from ray.data._internal.datasource.sql_datasource import Connection, SQLDatasource | ||
| from ray.data._internal.datasource.text_datasource import TextDatasource | ||
| from ray.data._internal.datasource.tfrecords_datasink import TFRecordDatasink | ||
| from ray.data._internal.datasource.tfrecords_datasource import ( | ||
| TFRecordDatasource, | ||
| TFXReadOptions, | ||
| ) | ||
| from ray.data._internal.datasource.torch_datasource import TorchDatasource | ||
| from ray.data._internal.datasource.uc_datasource import UnityCatalogConnector | ||
| from ray.data._internal.datasource.video_datasource import VideoDatasource | ||
| from ray.data._internal.datasource.webdataset_datasink import WebDatasetDatasink | ||
| from ray.data._internal.datasource.webdataset_datasource import WebDatasetDatasource | ||
|
|
||
| __all__ = [ | ||
| "ArrowJSONDatasource", | ||
| "AudioDatasource", | ||
| "AvroDatasource", | ||
| "BigQueryDatasink", | ||
| "BigQueryDatasource", | ||
| "BinaryDatasource", | ||
| "build_headers", | ||
| "ClickHouseDatasink", | ||
| "ClickHouseDatasource", | ||
| "ClickHouseTableSettings", | ||
| "Connection", | ||
| "CSVDatasink", | ||
| "CSVDatasource", | ||
| "DatabricksCredentialProvider", | ||
| "DatabricksUCDatasource", | ||
| "DeltaSharingDatasource", | ||
| "EnvironmentCredentialProvider", | ||
| "HudiDatasource", | ||
| "HuggingFaceDatasource", | ||
| "IcebergDatasink", | ||
| "IcebergDatasource", | ||
| "ImageDatasink", | ||
| "ImageDatasource", | ||
| "JSONDatasink", | ||
400Ping marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "KafkaAuthConfig", | ||
| "KafkaDatasource", | ||
| "LanceDatasink", | ||
| "LanceDatasource", | ||
| "MCAPDatasource", | ||
| "MongoDatasink", | ||
| "MongoDatasource", | ||
| "NumpyDatasink", | ||
| "NumpyDatasource", | ||
| "PandasJSONDatasource", | ||
| "ParquetDatasink", | ||
| "ParquetDatasource", | ||
| "RangeDatasource", | ||
| "request_with_401_retry", | ||
| "resolve_credential_provider", | ||
| "SinkMode", | ||
| "SQLDatasink", | ||
| "SQLDatasource", | ||
| "StaticCredentialProvider", | ||
| "TextDatasource", | ||
| "TFRecordDatasink", | ||
| "TFRecordDatasource", | ||
| "TFXReadOptions", | ||
| "TimeRange", | ||
| "TorchDatasource", | ||
| "UnityCatalogConnector", | ||
| "VideoDatasource", | ||
| "WebDatasetDatasink", | ||
| "WebDatasetDatasource", | ||
| ] | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.