morphik 0.2.1__tar.gz → 0.2.2__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: morphik
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Morphik Python Client
5
5
  Author-email: Morphik <founders@morphik.ai>
6
6
  Requires-Python: >=3.8
@@ -12,4 +12,4 @@ __all__ = [
12
12
  "Document",
13
13
  ]
14
14
 
15
- __version__ = "0.2.1"
15
+ __version__ = "0.2.2"
@@ -1,9 +1,9 @@
1
1
  import json
2
2
  import logging
3
+ from datetime import datetime
3
4
  from io import BytesIO, IOBase
4
5
  from pathlib import Path
5
6
  from typing import Any, BinaryIO, Dict, List, Optional, Type, Union
6
- from datetime import datetime
7
7
 
8
8
  import httpx
9
9
  from pydantic import BaseModel
@@ -1684,7 +1684,7 @@ class AsyncMorphik:
1684
1684
 
1685
1685
  The agent can autonomously use various tools to answer complex queries including:
1686
1686
  - Searching and retrieving relevant documents
1687
- - Analyzing document content
1687
+ - Analyzing document content
1688
1688
  - Performing calculations and data processing
1689
1689
  - Creating summaries and reports
1690
1690
  - Managing knowledge graphs
@@ -2650,9 +2650,7 @@ class AsyncMorphik:
2650
2650
  params["end_user_id"] = end_user_id
2651
2651
  return await self._request("GET", f"graph/{name}/visualization", params=params)
2652
2652
 
2653
- async def check_workflow_status(
2654
- self, workflow_id: str, run_id: Optional[str] = None
2655
- ) -> Dict[str, Any]:
2653
+ async def check_workflow_status(self, workflow_id: str, run_id: Optional[str] = None) -> Dict[str, Any]:
2656
2654
  """Poll the status of an async graph build/update workflow."""
2657
2655
  params = {"run_id": run_id} if run_id else None
2658
2656
  return await self._request("GET", f"graph/workflow/{workflow_id}/status", params=params)
@@ -2662,6 +2660,4 @@ class AsyncMorphik:
2662
2660
  # ------------------------------------------------------------------
2663
2661
  async def get_document_download_url(self, document_id: str, expires_in: int = 3600) -> Dict[str, Any]:
2664
2662
  """Generate a presigned download URL for a document (async)."""
2665
- return await self._request(
2666
- "GET", f"documents/{document_id}/download_url", params={"expires_in": expires_in}
2667
- )
2663
+ return await self._request("GET", f"documents/{document_id}/download_url", params={"expires_in": expires_in})
@@ -1,9 +1,9 @@
1
1
  import json
2
2
  import logging
3
+ from datetime import datetime
3
4
  from io import BytesIO, IOBase
4
5
  from pathlib import Path
5
6
  from typing import Any, BinaryIO, Dict, List, Optional, Type, Union
6
- from datetime import datetime
7
7
 
8
8
  import httpx
9
9
  from pydantic import BaseModel
@@ -1828,7 +1828,7 @@ class Morphik:
1828
1828
 
1829
1829
  The agent can autonomously use various tools to answer complex queries including:
1830
1830
  - Searching and retrieving relevant documents
1831
- - Analyzing document content
1831
+ - Analyzing document content
1832
1832
  - Performing calculations and data processing
1833
1833
  - Creating summaries and reports
1834
1834
  - Managing knowledge graphs
@@ -2854,6 +2854,4 @@ class Morphik:
2854
2854
  # ------------------------------------------------------------------
2855
2855
  def get_document_download_url(self, document_id: str, expires_in: int = 3600) -> Dict[str, Any]:
2856
2856
  """Generate a presigned download URL for a document stored remotely."""
2857
- return self._request(
2858
- "GET", f"documents/{document_id}/download_url", params={"expires_in": expires_in}
2859
- )
2857
+ return self._request("GET", f"documents/{document_id}/download_url", params={"expires_in": expires_in})
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "morphik"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  authors = [
9
9
  { name = "Morphik", email = "founders@morphik.ai" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes