hanzo 0.2.6__py3-none-any.whl → 0.2.7__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 hanzo might be problematic. Click here for more details.

hanzo/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Hanzo - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime."""
2
2
 
3
- __version__ = "0.2.6"
3
+ __version__ = "0.2.7"
4
4
  __all__ = ["main", "cli"]
5
5
 
6
6
  from .cli import main, cli
hanzo/cli.py CHANGED
@@ -12,7 +12,7 @@ from .interactive.repl import HanzoREPL
12
12
  from .utils.output import console
13
13
 
14
14
  # Version
15
- __version__ = "0.2.6"
15
+ __version__ = "0.2.7"
16
16
 
17
17
 
18
18
  @click.group(invoke_without_command=True)
@@ -116,18 +116,12 @@ async def start_compute_node(ctx, name: str = None, port: int = 52415,
116
116
  is_available, net_path, python_exe = check_net_installation()
117
117
 
118
118
  if not is_available:
119
- console.print("[red]Error:[/red] hanzo/net is not properly configured")
120
- if net_path:
121
- console.print(f"Found hanzo/net at {net_path} but dependencies are missing")
122
- missing = get_missing_dependencies(python_exe)
123
- if missing:
124
- console.print(f"Missing packages: {', '.join(missing)}")
125
- console.print("\nTo fix, run:")
126
- console.print(f" cd {net_path} && pip install -e .")
127
- else:
128
- console.print("\nTo install hanzo/net:")
129
- console.print(" git clone https://github.com/hanzoai/net.git ~/work/hanzo/net")
130
- console.print(" cd ~/work/hanzo/net && pip install -e .")
119
+ console.print("[red]Error:[/red] hanzo-net is not installed")
120
+ console.print("\nTo install hanzo-net from PyPI:")
121
+ console.print(" pip install hanzo-net")
122
+ console.print("\nOr for development, clone from GitHub:")
123
+ console.print(" git clone https://github.com/hanzoai/net.git ~/work/hanzo/net")
124
+ console.print(" cd ~/work/hanzo/net && pip install -e .")
131
125
  return
132
126
 
133
127
  try:
hanzo/utils/net_check.py CHANGED
@@ -13,18 +13,20 @@ def check_net_installation() -> Tuple[bool, Optional[str], Optional[str]]:
13
13
  Returns:
14
14
  Tuple of (is_available, net_path, python_exe)
15
15
  """
16
- # Check for hanzo/net in standard location
16
+ # First try to import as PyPI package (hanzo-net)
17
+ try:
18
+ import net
19
+ return True, None, sys.executable
20
+ except ImportError:
21
+ pass
22
+
23
+ # For development: check for hanzo/net in standard location
17
24
  net_path = Path.home() / "work" / "hanzo" / "net"
18
25
  if not net_path.exists():
19
26
  net_path = Path("/Users/z/work/hanzo/net")
20
27
 
21
28
  if not net_path.exists():
22
- # Try to import as package
23
- try:
24
- import net
25
- return True, None, sys.executable
26
- except ImportError:
27
- return False, None, None
29
+ return False, None, None
28
30
 
29
31
  # Check for venv
30
32
  venv_python = net_path / ".venv" / "bin" / "python"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime
5
5
  Project-URL: Homepage, https://hanzo.ai
6
6
  Project-URL: Repository, https://github.com/hanzoai/python-sdk
@@ -23,6 +23,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
24
  Requires-Python: >=3.8
25
25
  Requires-Dist: click>=8.1.0
26
+ Requires-Dist: hanzo-net>=0.1.0
26
27
  Requires-Dist: httpx>=0.23.0
27
28
  Requires-Dist: prompt-toolkit>=3.0.0
28
29
  Requires-Dist: pydantic>=2.0.0
@@ -1,6 +1,6 @@
1
- hanzo/__init__.py,sha256=O8RZSC5Ib4DEBkXnYSP82LXK7VlKN08JKWtgFrrEVmU,168
1
+ hanzo/__init__.py,sha256=QXW5M-0xXAPkNapOByrAATqn9tjNUhl5BekPICT4zLY,168
2
2
  hanzo/__main__.py,sha256=qRjwG8-7MHPOy3czoyDP9VK1GhEaJJsVeZcz2AG9NV0,104
3
- hanzo/cli.py,sha256=jcoEVVPpa1vKlYh4PkJ8zbWBgQoH-vDUSabrXMYcQyw,9187
3
+ hanzo/cli.py,sha256=OKi2C6pxqlCYSpXd7XwtFU3wskipIfZPODAeO4Br_-Q,8900
4
4
  hanzo/mcp_server.py,sha256=FBqcXhaJgV8_9O83H3fUy_pv4cV1707XCYm7FXaJeWY,422
5
5
  hanzo/repl.py,sha256=sC7EXbIBn7Oxnmzqey6neAg5-116gfpmrF0YFDYrhAQ,1014
6
6
  hanzo/commands/__init__.py,sha256=vXfIgioA6eakIYEN5ff5k_5BqOYQCJggD_MW40gb56w,138
@@ -20,9 +20,9 @@ hanzo/interactive/repl.py,sha256=-SwCSxwIHLiZBJOEShvqa4tgg2c7YYMf00zYRHazyIY,578
20
20
  hanzo/router/__init__.py,sha256=7Ulou75xQF8KKVzxOd4xXrmn3_Ti52M0NsAf6jXgGhk,913
21
21
  hanzo/utils/__init__.py,sha256=zmCH4YxefrpWmR-netV99UeECqrXjkKbi3ZjbcD79dw,68
22
22
  hanzo/utils/config.py,sha256=RU27eiSxGWAT9fI5-CjRdEJZEeT_xjMxjlMVeKC1gMg,4830
23
- hanzo/utils/net_check.py,sha256=tuIMpy44p5nkSTEco52y-Bhp58FVFMvx1S4oQn9BsKI,3032
23
+ hanzo/utils/net_check.py,sha256=WDElDu19MYN3qs7y_DbIpcnVsxiMCgg2CTI-48A15vE,3066
24
24
  hanzo/utils/output.py,sha256=lROF8RDOkck7ySt1kiTlVlHZqx1E0B-PqcJc78ZHYOs,2694
25
- hanzo-0.2.6.dist-info/METADATA,sha256=vPZKal3vrQDQYr8LoNnBymZJOqz_UvUPyGD2TRWMO78,4315
26
- hanzo-0.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- hanzo-0.2.6.dist-info/entry_points.txt,sha256=pQLPMdqOXU_2BfTcMDhkqTCDNk_H6ApvYuSaWcuQOOw,171
28
- hanzo-0.2.6.dist-info/RECORD,,
25
+ hanzo-0.2.7.dist-info/METADATA,sha256=ePZsIg6wTtju_Y9PVZWEvQNOpmd6aACB20rU9pFivHM,4347
26
+ hanzo-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ hanzo-0.2.7.dist-info/entry_points.txt,sha256=pQLPMdqOXU_2BfTcMDhkqTCDNk_H6ApvYuSaWcuQOOw,171
28
+ hanzo-0.2.7.dist-info/RECORD,,
File without changes