ygg 0.1.17__tar.gz → 0.1.19__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.
Files changed (60) hide show
  1. {ygg-0.1.17 → ygg-0.1.19}/PKG-INFO +1 -1
  2. {ygg-0.1.17 → ygg-0.1.19}/pyproject.toml +1 -1
  3. {ygg-0.1.17 → ygg-0.1.19}/src/ygg.egg-info/PKG-INFO +1 -1
  4. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/compute/execution_context.py +2 -7
  5. ygg-0.1.19/src/yggdrasil/databricks/workspaces/__init__.py +2 -0
  6. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/ser/callable_serde.py +8 -16
  7. ygg-0.1.17/src/yggdrasil/databricks/workspaces/__init__.py +0 -1
  8. {ygg-0.1.17 → ygg-0.1.19}/README.md +0 -0
  9. {ygg-0.1.17 → ygg-0.1.19}/setup.cfg +0 -0
  10. {ygg-0.1.17 → ygg-0.1.19}/src/ygg.egg-info/SOURCES.txt +0 -0
  11. {ygg-0.1.17 → ygg-0.1.19}/src/ygg.egg-info/dependency_links.txt +0 -0
  12. {ygg-0.1.17 → ygg-0.1.19}/src/ygg.egg-info/requires.txt +0 -0
  13. {ygg-0.1.17 → ygg-0.1.19}/src/ygg.egg-info/top_level.txt +0 -0
  14. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/__init__.py +0 -0
  15. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/__init__.py +0 -0
  16. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/compute/__init__.py +0 -0
  17. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/compute/cluster.py +0 -0
  18. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/compute/remote.py +0 -0
  19. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/jobs/__init__.py +0 -0
  20. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/jobs/config.py +0 -0
  21. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/sql/__init__.py +0 -0
  22. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/sql/engine.py +0 -0
  23. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/sql/exceptions.py +0 -0
  24. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/sql/statement_result.py +0 -0
  25. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/sql/types.py +0 -0
  26. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/workspaces/databricks_path.py +0 -0
  27. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/databricks/workspaces/workspace.py +0 -0
  28. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/dataclasses/__init__.py +0 -0
  29. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/dataclasses/dataclass.py +0 -0
  30. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/__init__.py +0 -0
  31. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/databrickslib.py +0 -0
  32. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/extensions/__init__.py +0 -0
  33. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/extensions/polars_extensions.py +0 -0
  34. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/extensions/spark_extensions.py +0 -0
  35. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/pandaslib.py +0 -0
  36. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/polarslib.py +0 -0
  37. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/libs/sparklib.py +0 -0
  38. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/pyutils/__init__.py +0 -0
  39. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/pyutils/exceptions.py +0 -0
  40. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/pyutils/modules.py +0 -0
  41. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/pyutils/parallel.py +0 -0
  42. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/pyutils/retry.py +0 -0
  43. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/requests/__init__.py +0 -0
  44. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/requests/msal.py +0 -0
  45. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/requests/session.py +0 -0
  46. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/ser/__init__.py +0 -0
  47. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/__init__.py +0 -0
  48. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/__init__.py +0 -0
  49. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/arrow_cast.py +0 -0
  50. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/cast_options.py +0 -0
  51. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/pandas_cast.py +0 -0
  52. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/polars_cast.py +0 -0
  53. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/polars_pandas_cast.py +0 -0
  54. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/registry.py +0 -0
  55. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/spark_cast.py +0 -0
  56. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/spark_pandas_cast.py +0 -0
  57. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/cast/spark_polars_cast.py +0 -0
  58. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/libs.py +0 -0
  59. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/python_arrow.py +0 -0
  60. {ygg-0.1.17 → ygg-0.1.19}/src/yggdrasil/types/python_defaults.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygg
3
- Version: 0.1.17
3
+ Version: 0.1.19
4
4
  Summary: Type-friendly utilities for moving data between Python objects, Arrow, Polars, Pandas, Spark, and Databricks
5
5
  Author: Yggdrasil contributors
6
6
  Project-URL: Homepage, https://github.com/Platob/Yggdrasil
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ygg"
7
- version = "0.1.17"
7
+ version = "0.1.19"
8
8
  description = "Type-friendly utilities for moving data between Python objects, Arrow, Polars, Pandas, Spark, and Databricks"
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  license = { file = "LICENSE" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygg
3
- Version: 0.1.17
3
+ Version: 0.1.19
4
4
  Summary: Type-friendly utilities for moving data between Python objects, Arrow, Polars, Pandas, Spark, and Databricks
5
5
  Author: Yggdrasil contributors
6
6
  Project-URL: Homepage, https://github.com/Platob/Yggdrasil
@@ -10,12 +10,9 @@ import re
10
10
  import sys
11
11
  import threading
12
12
  import zipfile
13
- from pickle import UnpicklingError
14
13
  from types import ModuleType
15
14
  from typing import TYPE_CHECKING, Optional, Any, Callable, List, Dict, Union, Iterable
16
15
 
17
- from mypy.checker import Mapping
18
-
19
16
  from ...libs.databrickslib import databricks_sdk
20
17
  from ...pyutils.exceptions import raise_parsed_traceback
21
18
  from ...pyutils.modules import resolve_local_lib_path
@@ -37,11 +34,11 @@ logger = logging.getLogger(__name__)
37
34
  @dc.dataclass
38
35
  class RemoteMetadata:
39
36
  site_packages_path: Optional[str] = dc.field(default=None)
40
- os_env: dict[str, str] = dc.field(default_factory=dict)
37
+ os_env: Dict[str, str] = dc.field(default_factory=dict)
41
38
 
42
39
  def os_env_diff(
43
40
  self,
44
- current: Optional[Mapping] = None
41
+ current: Optional[Dict] = None
45
42
  ):
46
43
  if current is None:
47
44
  current = os.environ
@@ -297,8 +294,6 @@ print(json.dumps(meta))
297
294
  if use_dill is None:
298
295
  if current_version == self.cluster.python_version:
299
296
  use_dill = True
300
- elif current_version in ((3, 12), (3, 13)) and self.cluster.python_version in ((3, 12), (3, 13)):
301
- use_dill = True
302
297
  else:
303
298
  use_dill = False
304
299
 
@@ -0,0 +1,2 @@
1
+ from .workspace import *
2
+ from .databricks_path import *
@@ -400,22 +400,13 @@ class CallableSerdeMixin:
400
400
  callable_payload["dill_b64"] = _b64e(dumped_fn)
401
401
 
402
402
  # args/kwargs transport
403
- if use_dill:
404
- dumped_args = _safe_dill_dumps(args)
405
- dumped_kwargs = _safe_dill_dumps(kwargs)
406
- if dumped_args is None or dumped_kwargs is None:
407
- raise ValueError("Failed to dill-serialize args/kwargs")
408
- args_pack: Dict[str, Any] = {"kind": "dill", "b64": _b64e(dumped_args)}
409
- kwargs_pack: Dict[str, Any] = {"kind": "dill", "b64": _b64e(dumped_kwargs)}
410
- else:
411
- try:
412
- args_pack = {"kind": "json", "text": json.dumps(args)}
413
- kwargs_pack = {"kind": "json", "text": json.dumps(kwargs)}
414
- except TypeError as e:
415
- raise ValueError(
416
- "use_dill=False requires JSON-serializable args/kwargs. "
417
- "If you need complex args, run same Python minor and use_dill=True."
418
- ) from e
403
+ dumped_args = _safe_dill_dumps(args)
404
+ dumped_kwargs = _safe_dill_dumps(kwargs)
405
+ if dumped_args is None or dumped_kwargs is None:
406
+ raise ValueError("Failed to dill-serialize args/kwargs")
407
+
408
+ args_pack: Dict[str, Any] = {"kind": "dill", "b64": _b64e(dumped_args)}
409
+ kwargs_pack: Dict[str, Any] = {"kind": "dill", "b64": _b64e(dumped_kwargs)}
419
410
 
420
411
  if not byte_limit:
421
412
  byte_limit = 512 * 1024
@@ -434,6 +425,7 @@ class CallableSerdeMixin:
434
425
  # --- generated by yggdrasil.ser.CallableSerdeMixin.to_command ---
435
426
  import base64, json, os, traceback, zlib
436
427
  import dill
428
+ from yggdrasil.databricks import *
437
429
 
438
430
  _payload = {payload!r}
439
431
 
@@ -1 +0,0 @@
1
- from .workspace import *
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes