duckrun 0.2.13__py3-none-any.whl → 0.2.19.dev1__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.

Potentially problematic release.


This version of duckrun might be problematic. Click here for more details.

duckrun/__init__.py CHANGED
@@ -1,10 +1,11 @@
1
1
  """Duckrun - Lakehouse task runner powered by DuckDB"""
2
2
 
3
3
  from duckrun.core import Duckrun
4
+ from duckrun.notebook import import_notebook_from_web, import_notebook
4
5
 
5
- __version__ = "0.2.9.dev5"
6
+ __version__ = "0.2.18"
6
7
 
7
8
  # Expose unified connect method at module level
8
9
  connect = Duckrun.connect
9
10
 
10
- __all__ = ["Duckrun", "connect"]
11
+ __all__ = ["Duckrun", "connect", "import_notebook_from_web", "import_notebook"]
duckrun/auth.py CHANGED
@@ -2,9 +2,21 @@
2
2
  Enhanced authentication module for duckrun - supports multiple notebook environments
3
3
  """
4
4
  import os
5
+ import sys
5
6
  from typing import Optional, Tuple
6
7
 
7
8
 
9
+ def safe_print(message: str):
10
+ """Print message with safe encoding handling for Windows"""
11
+ try:
12
+ print(message)
13
+ except UnicodeEncodeError:
14
+ # Fallback: remove emojis and special chars
15
+ import re
16
+ clean_message = re.sub(r'[^\x00-\x7F]+', '', message)
17
+ print(clean_message)
18
+
19
+
8
20
  def get_token() -> Optional[str]:
9
21
  """
10
22
  Smart authentication that works across multiple environments: