morphik 0.1.0__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.
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: morphik
3
+ Version: 0.1.0
4
+ Summary: Morphik Python Client
5
+ Author-email: Morphik <founders@morphik.ai>
6
+ Requires-Python: >=3.8
7
+ Requires-Dist: httpx>=0.24.0
8
+ Requires-Dist: pillow==10.4.0
9
+ Requires-Dist: pydantic==2.10.3
10
+ Requires-Dist: pyjwt>=2.0.0
11
+ Requires-Dist: requests>=2.32.3
12
+ Description-Content-Type: text/markdown
13
+
14
+ # Morphik
15
+
16
+ A Python client for Morphik API that enables document ingestion and semantic search capabilities.
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ pip install morphik
22
+ ```
23
+
24
+ ```python
25
+ from morphik import Morphik
26
+
27
+ # Initialize client
28
+ db = Morphik("your-api-key")
29
+
30
+ # Ingest a document
31
+ doc_id = await db.ingest_document(
32
+ content="Your document content",
33
+ metadata={"title": "Example Document"}
34
+ )
35
+
36
+ # Query documents
37
+ results = await db.query(
38
+ query="Your search query",
39
+ filters={"title": "Example Document"}
40
+ )
41
+
42
+ # Process results
43
+ for result in results:
44
+ print(f"Content: {result.content}")
45
+ print(f"Score: {result.score}")
46
+ print(f"Metadata: {result.metadata}")
47
+ ```
@@ -0,0 +1,9 @@
1
+ morphik/__init__.py,sha256=NJaVsfpAHLrb8O-L9j3fBJK4JsOE8Vto_alcFg26xVw,242
2
+ morphik/async_.py,sha256=koc-ryqt0MtV4sJTSSztsW_ctSzTcn4J8QAQSJX0JCY,52116
3
+ morphik/exceptions.py,sha256=v4XGmfq5B0KrZEF6M1ID8A50-45-SRAQZTrXGXM6n0Q,260
4
+ morphik/models.py,sha256=GZn3DGvzgcAyfb6z2fNzfnSiq0EQBNEEJj6Qfiwv-nU,16376
5
+ morphik/rules.py,sha256=nAEYseCxjrpK5QELeBxYI9RD4A8-aNThQkWV0d-Owjs,1512
6
+ morphik/sync.py,sha256=3h3bG5tuUyBOrXNQ-bYs2OluDfcrQIH69S7BBpylmuM,52734
7
+ morphik-0.1.0.dist-info/METADATA,sha256=qBZH5DeFC0WaTcwEwxr5Ybrrx84ElR1OTuYzNgRses8,1010
8
+ morphik-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ morphik-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any