fix: Update S3 TS code snippets and Python SDK for Polars 0.20.X (#2911)

* fix: update S3 TS code snippets

* use S3Object type from SDK

* update python snippets as well

* Update python SDK for Polars 0.20.X
This commit is contained in:
Guillaume Bouvignies
2023-12-22 08:39:35 +01:00
committed by GitHub
parent d238fc366a
commit 539312bb7e
7 changed files with 37 additions and 31 deletions

View File

@@ -24,12 +24,12 @@ class S3FsArgs(dict):
return self[attr]
class PolarsCloudOptions(dict):
class StorageOptions(dict):
aws_endpoint_url: str
aws_access_key_id: str
aws_secret_access_key: str
aws_region: bool
aws_allow_http: bool
aws_region: str
aws_allow_http: str
def __getattr__(self, attr):
return self[attr]
@@ -37,7 +37,7 @@ class PolarsCloudOptions(dict):
class PolarsConnectionSettings(dict):
s3fs_args: S3FsArgs
polars_cloud_options: PolarsCloudOptions
storage_options: StorageOptions
def __getattr__(self, attr):
return self[attr]