Skip to content
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

Enhancements in Filesystem Configuration #869

Merged
merged 50 commits into from Jan 8, 2024

Conversation

Pipboyguy
Copy link
Collaborator

Re-submission of Enhancements in Filesystem Configuration after changing default branch (see #856 (review))

Pipboyguy and others added 30 commits December 19, 2023 16:58
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
)

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
…nation factory

Updated FilesystemConfiguration's __init__ method
to accept two additional optional parameters:
kwargs and client_kwargs.
This will provide greater flexibility in configuration,
facilitating custom arguments
that can be passed from the Filesystem configuration.
Tests are adapted to reflect these changes,
and further modifications were made
to implement these new parameters within fsspec_filesystem.py.
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
)

Refactored common storage configuration and revised imports in line with PEP rules. Also updated the string formatting in filesystem related tests and moved `test_s3_wrong_certificate` method to `test_filesystem_client.py`. There’s an addition of `kwargs` and `client_kwargs` parameters to `fsspec_filesystem` function allowing for a more configurable function.

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
…ith linting (#814)

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Updated the test case for S3 SSL certificate verification to use a self-signed certificate generated during the test. This change ensures the test is more reliable, as it doesn't depend on external, possibly changing, data. Improved the test setup by creating and using a temporary certificate file, which gets cleaned up after use.

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Updated the filesystem.md documentation to improve clarity,
fix grammar mistakes, and ensure better readability.
The changes include breaking up longer sentences,
correcting spellings and punctuations. (#814)

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
…rguments (#814)

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
@Pipboyguy
Copy link
Collaborator Author

Documentation on usage added to filesystem destination

dlt/common/storages/fsspec_filesystem.py Outdated Show resolved Hide resolved
tests/load/filesystem/conftest.py Outdated Show resolved Hide resolved
tests/load/filesystem/test_filesystem_common.py Outdated Show resolved Hide resolved
@Pipboyguy Pipboyguy self-assigned this Jan 2, 2024
@Pipboyguy Pipboyguy added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 2, 2024
Pipboyguy and others added 7 commits January 2, 2024 16:56
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
This commit updates the handling of filesystem and credential configuration for different cloud storage protocols.

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
@Pipboyguy Pipboyguy requested a review from sh-rp January 5, 2024 09:31
Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
@sh-rp sh-rp merged commit 7d9baf1 into devel Jan 8, 2024
56 checks passed
@sh-rp sh-rp deleted the 814-additional-arguments-fsspec branch January 8, 2024 07:56
deanja added a commit to deanja/dlt-verified-sources that referenced this pull request Jan 16, 2024
kwargs or client_kwargs can be passed when constructing fsspec filesystem instances.
See dlt-hub/dlt#869
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

allow additional arguments to be passed to fsspec via FilesystemConfiguration
6 participants