如何使用 kedro read/write 数据 from/to 网络附加存储?
How can I read/write data from/to network attached storage with kedro?
在关于 kedro.io
and kedro.contrib.io
I could not find info about how to read/write data from/to network attached storage such as e.g. FritzBox NAS 的 API 文档中。
所以我对网络附加存储有点生疏,但是:
如果您可以将网络附加存储安装到您的 OS 上并像访问普通文件夹一样访问它,那么只需要在写入时提供正确的 filepath
给定目录条目的配置。参见示例:Using Python, how can I access a shared folder on windows network?
否则,如果访问网络附加存储需要任何特殊的东西,您可能会想到 create a custom dataset that uses a Python library for interfacing with your network attached storage. Something like pysmb。
自定义数据集可以大量借鉴现有 kedro.io
或 kedro.extras.datasets
数据集中的逻辑,但您将 filepath/fsspec 处理代码替换为 pysmb
。
在关于 kedro.io
and kedro.contrib.io
I could not find info about how to read/write data from/to network attached storage such as e.g. FritzBox NAS 的 API 文档中。
所以我对网络附加存储有点生疏,但是:
如果您可以将网络附加存储安装到您的 OS 上并像访问普通文件夹一样访问它,那么只需要在写入时提供正确的
filepath
给定目录条目的配置。参见示例:Using Python, how can I access a shared folder on windows network?否则,如果访问网络附加存储需要任何特殊的东西,您可能会想到 create a custom dataset that uses a Python library for interfacing with your network attached storage. Something like pysmb。
自定义数据集可以大量借鉴现有 kedro.io
或 kedro.extras.datasets
数据集中的逻辑,但您将 filepath/fsspec 处理代码替换为 pysmb
。