predev-api 0.10.5__tar.gz → 0.11.1__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.
- {predev_api-0.10.5/predev_api.egg-info → predev_api-0.11.1}/PKG-INFO +1 -1
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api/__init__.py +13 -1
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api/client.py +53 -0
- {predev_api-0.10.5 → predev_api-0.11.1/predev_api.egg-info}/PKG-INFO +1 -1
- {predev_api-0.10.5 → predev_api-0.11.1}/setup.py +1 -1
- {predev_api-0.10.5 → predev_api-0.11.1}/LICENSE +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/MANIFEST.in +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/README.md +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api/exceptions.py +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api.egg-info/SOURCES.txt +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api.egg-info/dependency_links.txt +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api.egg-info/requires.txt +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/predev_api.egg-info/top_level.txt +0 -0
- {predev_api-0.10.5 → predev_api-0.11.1}/setup.cfg +0 -0
|
@@ -20,10 +20,16 @@ from .client import (
|
|
|
20
20
|
HumanSpecMilestone,
|
|
21
21
|
HumanSpecJson,
|
|
22
22
|
SpecResponse,
|
|
23
|
+
SpecGraphNode,
|
|
24
|
+
SpecGraphEdge,
|
|
25
|
+
SpecGraph,
|
|
26
|
+
HelpfulLink,
|
|
27
|
+
AlternativeTechStackItemApi,
|
|
28
|
+
SpecEnrichedTechStackItem,
|
|
23
29
|
)
|
|
24
30
|
from .exceptions import PredevAPIError, AuthenticationError, RateLimitError
|
|
25
31
|
|
|
26
|
-
__version__ = "0.
|
|
32
|
+
__version__ = "0.11.0"
|
|
27
33
|
__all__ = [
|
|
28
34
|
"PredevAPI",
|
|
29
35
|
"PredevAPIError",
|
|
@@ -43,4 +49,10 @@ __all__ = [
|
|
|
43
49
|
"HumanSpecMilestone",
|
|
44
50
|
"HumanSpecJson",
|
|
45
51
|
"SpecResponse",
|
|
52
|
+
"SpecGraphNode",
|
|
53
|
+
"SpecGraphEdge",
|
|
54
|
+
"SpecGraph",
|
|
55
|
+
"HelpfulLink",
|
|
56
|
+
"AlternativeTechStackItemApi",
|
|
57
|
+
"SpecEnrichedTechStackItem",
|
|
46
58
|
]
|
|
@@ -125,6 +125,54 @@ class HumanSpecJson:
|
|
|
125
125
|
roles: Optional[List[SpecRole]] = None
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
@dataclass
|
|
129
|
+
class SpecGraphNode:
|
|
130
|
+
id: str = ""
|
|
131
|
+
label: str = ""
|
|
132
|
+
type: Optional[str] = None
|
|
133
|
+
description: Optional[str] = None
|
|
134
|
+
level: Optional[int] = None
|
|
135
|
+
hours: Optional[float] = None
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@dataclass
|
|
139
|
+
class SpecGraphEdge:
|
|
140
|
+
source: str = ""
|
|
141
|
+
target: str = ""
|
|
142
|
+
description: Optional[str] = None
|
|
143
|
+
edgeType: Optional[str] = None
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
@dataclass
|
|
147
|
+
class SpecGraph:
|
|
148
|
+
nodes: Optional[List['SpecGraphNode']] = None
|
|
149
|
+
edges: Optional[List['SpecGraphEdge']] = None
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
@dataclass
|
|
153
|
+
class HelpfulLink:
|
|
154
|
+
url: str = ""
|
|
155
|
+
description: str = ""
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
@dataclass
|
|
159
|
+
class AlternativeTechStackItemApi:
|
|
160
|
+
name: str = ""
|
|
161
|
+
link: str = ""
|
|
162
|
+
description: str = ""
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
@dataclass
|
|
166
|
+
class SpecEnrichedTechStackItem:
|
|
167
|
+
name: str = ""
|
|
168
|
+
useFor: str = ""
|
|
169
|
+
reason: str = ""
|
|
170
|
+
description: str = ""
|
|
171
|
+
link: Optional[str] = None
|
|
172
|
+
helpfulLinks: Optional[List['HelpfulLink']] = None
|
|
173
|
+
alternatives: Optional[List['AlternativeTechStackItemApi']] = None
|
|
174
|
+
|
|
175
|
+
|
|
128
176
|
@dataclass
|
|
129
177
|
class SpecResponse:
|
|
130
178
|
"""Status check response class"""
|
|
@@ -166,6 +214,11 @@ class SpecResponse:
|
|
|
166
214
|
# Fast spec: typically ~5-10 credits, Deep spec: typically ~10-50 credits
|
|
167
215
|
creditsUsed: Optional[float] = None # Total credits consumed by this spec generation
|
|
168
216
|
|
|
217
|
+
# Graph data (only when completed)
|
|
218
|
+
userFlowGraph: Optional['SpecGraph'] = None
|
|
219
|
+
architectureGraph: Optional['SpecGraph'] = None
|
|
220
|
+
enrichedTechStack: Optional[List['SpecEnrichedTechStackItem']] = None
|
|
221
|
+
|
|
169
222
|
|
|
170
223
|
@dataclass
|
|
171
224
|
class ErrorResponse:
|
|
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="predev-api",
|
|
12
|
-
version="0.
|
|
12
|
+
version="0.11.1",
|
|
13
13
|
author="Pre.dev",
|
|
14
14
|
author_email="support@pre.dev",
|
|
15
15
|
description="Python client for the Pre.dev Architect API - Generate comprehensive software specifications",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|