discovery-engine-api 0.2.85__tar.gz → 0.2.86__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: discovery-engine-api
3
- Version: 0.2.85
3
+ Version: 0.2.86
4
4
  Summary: Python SDK for Disco API
5
5
  Project-URL: Homepage, https://www.leap-labs.com
6
6
  Project-URL: Documentation, https://disco.leap-labs.com/llms-full.txt
@@ -78,7 +78,7 @@ Get your API key from the [Developers page](https://disco.leap-labs.com/develope
78
78
  await engine.discover(
79
79
  file: str | Path | pd.DataFrame, # Dataset to analyze
80
80
  target_column: str, # Column to predict/analyze
81
- depth_iterations: int = 1, # 1=fast, higher=deeper search
81
+ depth_iterations: int = 2, # 1=fast, higher=deeper search
82
82
  visibility: str = "public", # "public" (free) or "private" (credits)
83
83
  title: str | None = None, # Dataset title
84
84
  description: str | None = None, # Dataset description
@@ -90,7 +90,7 @@ await engine.discover(
90
90
 
91
91
  > **Tip:** Providing `column_descriptions` significantly improves pattern explanations. If your columns have non-obvious names, always describe them.
92
92
 
93
- > **Depth and visibility:** Public runs are always `depth_iterations=1` regardless of settings. To use `depth_iterations > 1`, set `visibility="private"`. Private runs consume credits based on file size × depth.
93
+ > **Depth and visibility:** Public runs are free; results are published to the public gallery. Private runs consume credits based on file size × depth.
94
94
 
95
95
 
96
96
  ## Examples
@@ -212,7 +212,7 @@ print(f"Explore: {result.report_url}")
212
212
 
213
213
  ## Credits and Pricing
214
214
 
215
- - **Public runs**: Free. Results published to public gallery. Locked to depth=1.
215
+ - **Public runs**: Free. Results published to public gallery.
216
216
  - **Private runs**: 1 credit per MB per depth iteration. $1.00 per credit.
217
217
  - **Formula**: `credits = max(1, ceil(file_size_mb * depth_iterations))`
218
218
 
@@ -41,7 +41,7 @@ Get your API key from the [Developers page](https://disco.leap-labs.com/develope
41
41
  await engine.discover(
42
42
  file: str | Path | pd.DataFrame, # Dataset to analyze
43
43
  target_column: str, # Column to predict/analyze
44
- depth_iterations: int = 1, # 1=fast, higher=deeper search
44
+ depth_iterations: int = 2, # 1=fast, higher=deeper search
45
45
  visibility: str = "public", # "public" (free) or "private" (credits)
46
46
  title: str | None = None, # Dataset title
47
47
  description: str | None = None, # Dataset description
@@ -53,7 +53,7 @@ await engine.discover(
53
53
 
54
54
  > **Tip:** Providing `column_descriptions` significantly improves pattern explanations. If your columns have non-obvious names, always describe them.
55
55
 
56
- > **Depth and visibility:** Public runs are always `depth_iterations=1` regardless of settings. To use `depth_iterations > 1`, set `visibility="private"`. Private runs consume credits based on file size × depth.
56
+ > **Depth and visibility:** Public runs are free; results are published to the public gallery. Private runs consume credits based on file size × depth.
57
57
 
58
58
 
59
59
  ## Examples
@@ -175,7 +175,7 @@ print(f"Explore: {result.report_url}")
175
175
 
176
176
  ## Credits and Pricing
177
177
 
178
- - **Public runs**: Free. Results published to public gallery. Locked to depth=1.
178
+ - **Public runs**: Free. Results published to public gallery.
179
179
  - **Private runs**: 1 credit per MB per depth iteration. $1.00 per credit.
180
180
  - **Formula**: `credits = max(1, ceil(file_size_mb * depth_iterations))`
181
181
 
@@ -1,6 +1,6 @@
1
1
  """Disco Python SDK."""
2
2
 
3
- __version__ = "0.2.85"
3
+ __version__ = "0.2.86"
4
4
 
5
5
  from discovery.client import Engine
6
6
  from discovery.types import (
@@ -761,7 +761,7 @@ class Engine:
761
761
  Args:
762
762
  file: File path, Path object, or pandas DataFrame.
763
763
  target_column: Name of the target column.
764
- depth_iterations: Analysis depth (default 1). Public runs are always depth 1.
764
+ depth_iterations: Analysis depth (default 2). Higher = deeper pattern search.
765
765
  title: Optional dataset title.
766
766
  description: Optional dataset description.
767
767
  column_descriptions: Dict mapping column names to descriptions.
@@ -57,7 +57,7 @@ class DiscoveryEngineTool(BaseTool):
57
57
  result = engine.discover_sync(
58
58
  file=file_path,
59
59
  target_column=target_column,
60
- depth_iterations=params.get("depth_iterations", 1),
60
+ depth_iterations=params.get("depth_iterations", 2),
61
61
  visibility=params.get("visibility", "public"),
62
62
  )
63
63
  except Exception as e:
@@ -66,7 +66,7 @@ class DiscoveryEngineTool(BaseTool):
66
66
  result = await engine.discover(
67
67
  file=file_path,
68
68
  target_column=target_column,
69
- depth_iterations=params.get("depth_iterations", 1),
69
+ depth_iterations=params.get("depth_iterations", 2),
70
70
  visibility=params.get("visibility", "public"),
71
71
  )
72
72
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "discovery-engine-api"
3
- version = "0.2.85"
3
+ version = "0.2.86"
4
4
  description = "Python SDK for Disco API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"