Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions earthdaily/earthone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,27 @@
except PackageNotFoundError:
from earthdaily.earthone.core.client import __version__

from earthdaily.earthone import auth
from earthdaily.earthone import config
from earthdaily.earthone import exceptions
from earthdaily.earthone import geo
from earthdaily.earthone import utils
from earthdaily.earthone import catalog
from earthdaily.earthone import compute
from earthdaily.earthone import vector

select_env = config.select_env
get_settings = config.get_settings

_LAZY_SUBMODULES = {"auth", "catalog", "compute", "exceptions", "geo", "utils", "vector"}


def __getattr__(name: str):
if name in _LAZY_SUBMODULES:
import importlib

module = importlib.import_module(f"earthdaily.earthone.{name}")
globals()[name] = module
return module
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


def __dir__():
return __all__

__author__ = "EarthDaily"

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion earthdaily/earthone/core/client/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "6.0.1"
__version__ = "6.0.2"
Loading