Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pins): add support for custom storage options in
board_s3
(#237)
* feat(pins): add support for custom storage options in `board_s3` - Introduce the ability to pass arbitrary storage options to the underlying fsspec S3FileSystem in `board_s3`. - This enhancement allows for greater flexibility when connecting to S3-compatible services by enabling the specification of custom credentials, endpoints, and other S3FileSystem parameters. - Added documentation and examples to illustrate how to use the new `storage_options` parameter, including an example for connecting to Backblaze B2. This change enables users to more easily integrate with a variety of S3-compatible storage solutions, improving the library's versatility and user experience. * fix(pins): correct kwargs reference in board_s3 constructor - Replace `**kwargs` with `**storage_options` to accurately reflect the intended parameter in `board_s3` function, ensuring the correct handling of storage options. * docs(pins): add missing import statement in board_s3 example - This commit adds an import statement for the `pins` module in the docstring example of the `board_s3` function. This change ensures that the example is self-contained and can be executed without prior context, improving the documentation's usability for new users. * style(pins): format board_s3 function definition for better readability - Adjusted the function definition of `board_s3` to span multiple lines, improving code readability and maintainability. - Ensured consistency with project coding standards for function definitions. * feat(pins): add warning for non-zero listings_expiry_time in board_s3 - Implemented a warning for users setting `listings_expiry_time` to a non-zero value in `board_s3` function to alert them about potential unexpected cache behaviour. - Refactored the handling of `storage_options` to ensure `listings_expiry_time` is explicitly set, either by the user or to a default of 0, to improve clarity and maintainability of the code. This change aims to guide users towards optimal performance settings and enhance the reliability of cache operations with S3 boards.
- Loading branch information