Skip to content

Commit

Permalink
Python: Integrate relocation API.
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Spörri <[email protected]>
  • Loading branch information
pspoerri committed Apr 19, 2023
1 parent 8bca9fd commit f0038dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/python/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ PYBIND11_MODULE(pygeds, m) {
[](GEDS &self, GEDSFile &file) -> std::string { return self.getLocalPath(file); })
.def("registerObjectStoreConfig", &GEDS::registerObjectStoreConfig, py::arg("bucket"),
py::arg("endpointUrl"), py::arg("accessKey"), py::arg("secretKey"))
.def("syncObjectStoreConfigs", &GEDS::syncObjectStoreConfigs);
.def("syncObjectStoreConfigs", &GEDS::syncObjectStoreConfigs)
.def(
"relocate", [](GEDS &self, bool force) { self.relocate(force); },
py::arg("force") = false);

py::class_<GEDSFile, std::shared_ptr<GEDSFile>>(m, "GEDSFile")
.def_property_readonly("size", &GEDSFile::size)
Expand Down

0 comments on commit f0038dc

Please sign in to comment.