unitlab 2.3.35__tar.gz → 2.3.36__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitlab
3
- Version: 2.3.35
3
+ Version: 2.3.36
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name="unitlab",
5
- version="2.3.35",
5
+ version="2.3.36",
6
6
  license="MIT",
7
7
  author="Unitlab Inc.",
8
8
  author_email="team@unitlab.ai",
@@ -487,34 +487,7 @@ class PersistentTunnel:
487
487
  self.stop()
488
488
  return False
489
489
 
490
- def start_quick_tunnel(self):
491
- """Fallback to quick tunnel"""
492
- print("🔧 Using quick tunnel (temporary URL)...")
493
-
494
- # Start Jupyter first
495
- self.start_jupyter()
496
-
497
- # Start quick tunnel
498
- cloudflared = self.get_cloudflared_path()
499
- cmd = [cloudflared, "tunnel", "--url", "http://localhost:8888"]
500
-
501
- self.tunnel_process = subprocess.Popen(
502
- cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
503
- )
504
-
505
- # Get URL from output
506
- for _ in range(30):
507
- line = self.tunnel_process.stdout.readline()
508
- if "trycloudflare.com" in line:
509
- import re
510
- match = re.search(r'https://[a-zA-Z0-9-]+\.trycloudflare\.com', line)
511
- if match:
512
- self.jupyter_url = match.group(0)
513
- print("✅ Quick tunnel: {}".format(self.jupyter_url))
514
- return True
515
- time.sleep(0.5)
516
-
517
- return False
490
+
518
491
 
519
492
  def stop(self):
520
493
  """Stop everything"""
@@ -523,16 +496,16 @@ class PersistentTunnel:
523
496
  if self.tunnel_process:
524
497
  self.tunnel_process.terminate()
525
498
 
526
- # Optionally delete tunnel when stopping
527
- if self.tunnel_id:
528
- try:
529
- url = "https://api.cloudflare.com/client/v4/accounts/{}/cfd_tunnel/{}".format(
530
- self.cf_account_id, self.tunnel_id
531
- )
532
- requests.delete(url, headers=self._get_headers())
533
- print("🗑️ Tunnel deleted")
534
- except Exception:
535
- pass # Ignore cleanup errors
499
+ # # Optionally delete tunnel when stopping
500
+ # if self.tunnel_id:
501
+ # try:
502
+ # url = "https://api.cloudflare.com/client/v4/accounts/{}/cfd_tunnel/{}".format(
503
+ # self.cf_account_id, self.tunnel_id
504
+ # )
505
+ # requests.delete(url, headers=self._get_headers())
506
+ # print("🗑️ Tunnel deleted")
507
+ # except Exception:
508
+ # pass # Ignore cleanup errors
536
509
 
537
510
  def run(self):
538
511
  """Run and keep alive"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitlab
3
- Version: 2.3.35
3
+ Version: 2.3.36
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes