Commit f0b50ec
committed
feat: export StorageAdapter and get_storage_adapter at top level
The Storage Adapter spec (datajoint-docs#172) documents
``dj.StorageAdapter`` as the public base class and ``dj.get_storage_adapter()``
as the lookup helper, but they were not exposed via the top-level
namespace in 2.2.3 — plugin authors following the spec literally hit
``AttributeError: module 'datajoint' has no attribute 'StorageAdapter'``.
Adds the two public symbols to ``__init__.py``:
- ``StorageAdapter`` (ABC, defined in ``src/datajoint/storage_adapter.py``)
- ``get_storage_adapter(protocol)``
The private ``_discover_adapters`` helper is intentionally not exported.1 parent 72cf607 commit f0b50ec
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
0 commit comments