sibi-dst 2025.9.12__tar.gz → 2025.9.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/PKG-INFO +1 -1
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/pyproject.toml +1 -1
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/dask_utils.py +19 -3
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst.egg-info/PKG-INFO +1 -1
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/README.md +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/setup.cfg +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/_artifact_updater_async.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/_artifact_updater_threaded.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/_df_helper.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/_parquet_artifact.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/_parquet_reader.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/http/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/http/_http_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/parquet/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/parquet/_parquet_options.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_db_connection.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_db_gatekeeper.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_io_dask.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_load_from_db.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_model_registry.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_sql_model_builder.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/core/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/core/_defaults.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/core/_filter_handler.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/core/_params_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/core/_query_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/geopy_helper/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/geopy_helper/geo_location_service.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/geopy_helper/utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/base_osm_map.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/basemaps/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/basemaps/calendar_html.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/basemaps/route_map_plotter.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/basemaps/router_plotter.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/route_path_builder.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/tests/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/tests/test_baseclass.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/tests/test_data_wrapper_class.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/async_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/base.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_attacher.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_data_cube.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_parquet_artifact.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_parquet_reader.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_pipeline.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_pipeline_template.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/hybrid_data_loader.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/business_days.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/clickhouse_writer.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/credentials.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/data_from_http_source.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/data_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/data_wrapper.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/date_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/df_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/file_age_checker.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/file_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/filepath_generator.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/iceberg_saver.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/log_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/manifest_manager.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/parquet_saver.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/periods.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/phone_formatter.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/progress/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/progress/jobs.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/progress/sse_runner.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/storage_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/storage_hive.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/storage_manager.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/update_planner.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/webdav_client.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/write_gatekeeper.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/_df_helper.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_db_connection.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_io_dask.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_load_from_db.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_model_builder.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_db_connection.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_io_dask.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_load_from_db.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_model_builder.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/core/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/core/_filter_handler.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/core/_params_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/core/_query_config.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/utils/__init__.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/utils/log_utils.py +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst.egg-info/SOURCES.txt +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst.egg-info/dependency_links.txt +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst.egg-info/requires.txt +0 -0
- {sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst.egg-info/top_level.txt +0 -0
@@ -1,10 +1,11 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import asyncio
|
4
|
+
import logging
|
4
5
|
from typing import List, Any, Dict
|
5
6
|
|
6
7
|
import dask
|
7
|
-
#dask.config.set({"distributed.worker.daemon": False})
|
8
|
+
# dask.config.set({"distributed.worker.daemon": False})
|
8
9
|
import dask.dataframe as dd
|
9
10
|
|
10
11
|
def _to_int_safe(x) -> int:
|
@@ -63,7 +64,7 @@ class UniqueValuesExtractor:
|
|
63
64
|
pairs = await asyncio.gather(*(one(c) for c in columns))
|
64
65
|
return dict(pairs)
|
65
66
|
|
66
|
-
from contextlib import suppress
|
67
|
+
from contextlib import suppress, asynccontextmanager
|
67
68
|
from dask.distributed import Client, LocalCluster, get_client
|
68
69
|
import os
|
69
70
|
|
@@ -93,6 +94,12 @@ class DaskClientMixin:
|
|
93
94
|
self.dask_client = dask_client
|
94
95
|
self.own_dask_client = False
|
95
96
|
self.logger = logger
|
97
|
+
# Apply log filters globally
|
98
|
+
logging.getLogger("distributed.shuffle._scheduler_plugin").setLevel(
|
99
|
+
logging.ERROR
|
100
|
+
)
|
101
|
+
logging.getLogger("distributed.scheduler").setLevel(logging.WARNING)
|
102
|
+
logging.getLogger("distributed.worker").setLevel(logging.WARNING)
|
96
103
|
|
97
104
|
if self.dask_client is None:
|
98
105
|
with suppress(ValueError, RuntimeError):
|
@@ -143,6 +150,15 @@ class DaskClientMixin:
|
|
143
150
|
if self.logger:
|
144
151
|
self.logger.warning(f"Error while closing Dask client: {e}")
|
145
152
|
|
153
|
+
@asynccontextmanager
|
154
|
+
async def shared_dask_session(**kwargs):
|
155
|
+
mixin = DaskClientMixin()
|
156
|
+
mixin._init_dask_client(**kwargs)
|
157
|
+
try:
|
158
|
+
yield mixin.dask_client
|
159
|
+
finally:
|
160
|
+
mixin._close_dask_client()
|
161
|
+
|
146
162
|
# from contextlib import suppress
|
147
163
|
# from dask.distributed import Client, get_client
|
148
164
|
#
|
@@ -181,4 +197,4 @@ class DaskClientMixin:
|
|
181
197
|
# self.logger.info("Closed local Dask client.")
|
182
198
|
# except Exception as e:
|
183
199
|
# if self.logger:
|
184
|
-
# self.logger.warning(f"Error while closing Dask client: {e}")
|
200
|
+
# self.logger.warning(f"Error while closing Dask client: {e}")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/parquet/_parquet_options.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/__init__.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_db_connection.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_db_gatekeeper.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_io_dask.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_load_from_db.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/df_helper/backends/sqlalchemy/_model_registry.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/osmnx_helper/basemaps/route_map_plotter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_parquet_artifact.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/utils/boilerplate/base_pipeline_template.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/__init__.py
RENAMED
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_io_dask.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlalchemy/_load_from_db.py
RENAMED
File without changes
|
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/__init__.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_db_connection.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_io_dask.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_load_from_db.py
RENAMED
File without changes
|
{sibi_dst-2025.9.12 → sibi_dst-2025.9.13}/sibi_dst/v2/df_helper/backends/sqlmodel/_model_builder.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|