Skip to content

Commit 8bbcd2d

Browse files
committed
Move FileIO Into Pure Python
1 parent eb3ecfa commit 8bbcd2d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tiledb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
from .schema_evolution import ArraySchemaEvolution
103103

104-
from .vfs import VFS
104+
from .vfs import VFS, FileIO
105105

106106
# TODO restricted imports
107107
from .dataframe_ import from_csv, from_pandas, open_dataframe

tiledb/cc/context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void init_context(py::module &m) {
2222
}
2323

2424
void init_config(py::module &m) {
25-
py::class_<tiledb::Config>(m, "ccConfig")
25+
py::class_<tiledb::Config>(m, "Config")
2626
.def(py::init())
2727
.def(py::init<std::map<std::string, std::string>>())
2828
.def(py::init<std::string>())

tiledb/cc/vfs.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ void init_vfs(py::module &m) {
1818
.def(py::init<const Context &>(), py::keep_alive<1, 2>())
1919
.def(py::init<const Context &, const Config &>(), py::keep_alive<1, 2>())
2020

21+
.def("ctx", &VFS::context)
22+
.def("config", &VFS::config)
23+
2124
.def("create_bucket", &VFS::create_bucket)
2225
.def("remove_bucket", &VFS::remove_bucket)
2326
.def("is_bucket", &VFS::is_bucket)

0 commit comments

Comments
 (0)