Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bin/generate-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,20 @@ def patch_ndjson_handling() -> bool:
return None
"""

# Find the location to insert the patch (raw generated code uses 4 spaces)
search_pattern = " if response.status_code == 200:\n response_200 = ExecuteCypherQueryResponse200.from_dict(response.json())\n\n return response_200"
# Find the location to insert the patch (raw generated code uses 4 spaces).
# The /v1/graphs/{graph_id}/query endpoint declares `response_model=None`
# (it returns JSONResponse | StreamingResponse | EventSourceResponse depending
# on mode), so the generator emits `response.json()` directly with no typed
# Response200 model.
search_pattern = " if response.status_code == 200:\n response_200 = response.json()\n return response_200"

if search_pattern not in content:
print(f"❌ Could not find expected pattern in {file_path}")
print("The generated code structure may have changed.")
return False

# Replace the pattern with the patched version
replacement = f" if response.status_code == 200:\n{ndjson_check} response_200 = ExecuteCypherQueryResponse200.from_dict(response.json())\n\n return response_200"
replacement = f" if response.status_code == 200:\n{ndjson_check} response_200 = response.json()\n return response_200"
patched_content = content.replace(search_pattern, replacement)

# Write the patched content back
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = "robosystems-client"
version = "0.3.8"
description = "Python Client for RoboSystems financial graph database API"
description = "Python client library for RoboSystems Financial Knowledge Graph API"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "RFS LLC"},
]
license = {text = "MIT"}
keywords = ["client", "robosystems", "financial", "graph", "api", "sdk"]
keywords = ["client", "robosystems", "financial", "graph", "api", "sdk", "knowledge-graph"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
Expand Down Expand Up @@ -51,6 +51,11 @@ dev = [
"twine>=5.0.0",
]

[project.urls]
Repository = "https://github.com/RoboFinSystems/robosystems-python-client"
Homepage = "https://github.com/RoboFinSystems/robosystems-python-client#readme"
"Bug Tracker" = "https://github.com/RoboFinSystems/robosystems-python-client/issues"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Expand Down
225 changes: 0 additions & 225 deletions robosystems_client/api/documents/upload_documents_bulk.py

This file was deleted.

Loading
Loading