developmentseed / obstore

Simple, fast integration with Amazon S3, Google Cloud Storage, Azure Storage, and S3-compliant APIs like Cloudflare R2
https://developmentseed.org/obstore
MIT License
146 stars 3 forks source link

No module named 'obstore.store.ObjectStore' #75

Closed vincentsarago closed 1 week ago

vincentsarago commented 2 weeks ago
In [7]: import obstore.store.ObjectStore
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-aea90fd32c0e> in <cell line: 1>()
----> 1 import obstore.store.ObjectStore

ModuleNotFoundError: No module named 'obstore.store.ObjectStore'; 'obstore.store' is not a package

obstore version: 0.3.0b2

kylebarron commented 2 weeks ago

It's a type hint, not an object

kylebarron commented 2 weeks ago

you can do

from __future__ import annotations

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from obstore.store import ObjectStore

perhaps we should change it to be an actual Python value

vincentsarago commented 2 weeks ago

🙏