sqlframe 3.0.0__py3-none-any.whl → 3.1.0__py3-none-any.whl
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.
- sqlframe/__init__.py +16 -0
- sqlframe/_version.py +2 -2
- {sqlframe-3.0.0.dist-info → sqlframe-3.1.0.dist-info}/METADATA +2 -2
- {sqlframe-3.0.0.dist-info → sqlframe-3.1.0.dist-info}/RECORD +7 -7
- {sqlframe-3.0.0.dist-info → sqlframe-3.1.0.dist-info}/LICENSE +0 -0
- {sqlframe-3.0.0.dist-info → sqlframe-3.1.0.dist-info}/WHEEL +0 -0
- {sqlframe-3.0.0.dist-info → sqlframe-3.1.0.dist-info}/top_level.txt +0 -0
sqlframe/__init__.py
CHANGED
|
@@ -81,3 +81,19 @@ def activate(
|
|
|
81
81
|
sys.modules[f"pyspark.sql.{file}"] = engine_file
|
|
82
82
|
resolved_files.add(engine_file)
|
|
83
83
|
setattr(engine_file, name_without_prefix, obj)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def deactivate() -> None:
|
|
87
|
+
pyspark_imports = [k for k in sys.modules if k.startswith("pyspark")]
|
|
88
|
+
|
|
89
|
+
for k, v in sys.modules.copy().items():
|
|
90
|
+
if k in pyspark_imports:
|
|
91
|
+
del sys.modules[k]
|
|
92
|
+
# Try importing the pyspark imports again and see if pyspark is installed and therefore available
|
|
93
|
+
# if not then nothing will change
|
|
94
|
+
for k in pyspark_imports:
|
|
95
|
+
try:
|
|
96
|
+
sys.modules[k] = importlib.import_module(k)
|
|
97
|
+
except ImportError:
|
|
98
|
+
pass
|
|
99
|
+
ACTIVATE_CONFIG.clear()
|
sqlframe/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sqlframe
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Turning PySpark Into a Universal DataFrame API
|
|
5
5
|
Home-page: https://github.com/eakmanrq/sqlframe
|
|
6
6
|
Author: Ryan Eakman
|
|
@@ -18,7 +18,7 @@ Requires-Python: >=3.8
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: prettytable (<3.11.1)
|
|
21
|
-
Requires-Dist: sqlglot (<25.
|
|
21
|
+
Requires-Dist: sqlglot (<25.18,>=24.0.0)
|
|
22
22
|
Requires-Dist: typing-extensions (<5,>=4.8)
|
|
23
23
|
Provides-Extra: bigquery
|
|
24
24
|
Requires-Dist: google-cloud-bigquery-storage (<3,>=2) ; extra == 'bigquery'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
sqlframe/__init__.py,sha256=
|
|
2
|
-
sqlframe/_version.py,sha256=
|
|
1
|
+
sqlframe/__init__.py,sha256=E3qCJ4PSEgKz6Hg3ves6LWt3JrQOV8c9HVLSIUOzKNc,3106
|
|
2
|
+
sqlframe/_version.py,sha256=A-HOe0g_aYgtz-Ae3lmTbAh7f_q89CWQuxfAhrI0Dz4,411
|
|
3
3
|
sqlframe/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
sqlframe/base/_typing.py,sha256=b2clI5HI1zEZKB_3Msx3FeAJQyft44ubUifJwQRVXyQ,1298
|
|
5
5
|
sqlframe/base/catalog.py,sha256=SzFQalTWdhWzxUY-4ut1f9TfOECp_JmJEgNPfrRKCe0,38457
|
|
@@ -107,8 +107,8 @@ sqlframe/standalone/udf.py,sha256=azmgtUjHNIPs0WMVNId05SHwiYn41MKVBhKXsQJ5dmY,27
|
|
|
107
107
|
sqlframe/standalone/window.py,sha256=6GKPzuxeSapJakBaKBeT9VpED1ACdjggDv9JRILDyV0,35
|
|
108
108
|
sqlframe/testing/__init__.py,sha256=VVCosQhitU74A3NnE52O4mNtGZONapuEXcc20QmSlnQ,132
|
|
109
109
|
sqlframe/testing/utils.py,sha256=9DDYVuocO7tygee3RaajuJNZ24sJwf_LY556kKg7kTw,13011
|
|
110
|
-
sqlframe-3.
|
|
111
|
-
sqlframe-3.
|
|
112
|
-
sqlframe-3.
|
|
113
|
-
sqlframe-3.
|
|
114
|
-
sqlframe-3.
|
|
110
|
+
sqlframe-3.1.0.dist-info/LICENSE,sha256=VZu79YgW780qxaFJMr0t5ZgbOYEh04xWoxaWOaqIGWk,1068
|
|
111
|
+
sqlframe-3.1.0.dist-info/METADATA,sha256=RP3S_4Cp8VB0Jz5kONXiqZu6Lj_Z_5k5b2xZM8Y9Jws,8639
|
|
112
|
+
sqlframe-3.1.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
113
|
+
sqlframe-3.1.0.dist-info/top_level.txt,sha256=T0_RpoygaZSF6heeWwIDQgaP0varUdSK1pzjeJZRjM8,9
|
|
114
|
+
sqlframe-3.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|