diff --git a/sdks/python/README.md b/sdks/python/README.md index e69de29..3edd997 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -0,0 +1,34 @@ +# DataBridge + +A Python client for DataBridge API that enables document ingestion and semantic search capabilities. + +## Installation + +```bash +pip install databridge-client +``` + +``` +from databridge import DataBridge + +# Initialize client +db = DataBridge("your-api-key") + +# Ingest a document +doc_id = await db.ingest_document( + content="Your document content", + metadata={"title": "Example Document"} +) + +# Query documents +results = await db.query( + query="Your search query", + filters={"title": "Example Document"} +) + +# Process results +for result in results: + print(f"Content: {result.content}") + print(f"Score: {result.score}") + print(f"Metadata: {result.metadata}") +``` \ No newline at end of file diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 4de7b58..6419c6b 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "databridge" +name = "databridge-client" version = "0.1.0" authors = [ { name = "Your Name", email = "your.email@example.com" }, @@ -22,4 +22,4 @@ packages = ["databridge"] [tool.hatch.build.targets.sdist] include = [ "/databridge", -] \ No newline at end of file +] diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 0cdd1d2..723e549 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup( - name="databridge", + name="databridge-client", version="0.1.0", packages=find_packages(), install_requires=[ @@ -9,4 +9,4 @@ setup( "pyjwt", ], python_requires=">=3.7", -) \ No newline at end of file +)