Name | dappier JSON |
Version |
0.3.1
JSON |
| download |
home_page | None |
Summary | The Dappier Python SDK provides an easy-to-use interface for interacting with the Dappier API. |
upload_time | 2024-12-26 10:40:20 |
maintainer | None |
docs_url | None |
author | AI20labs |
requires_python | <4.0,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Dappier Python SDK
The Dappier Python SDK provides an easy-to-use interface for interacting with the Dappier API.
---
## Installation
Install the SDK using pip:
```bash
pip install dappier
```
---
## Initialization
Below is an example of how to use the Dappier SDK:
```python
import os
from dappier import Dappier
# Set your API key as an environment variable
os.environ["DAPPIER_API_KEY"] = "<YOUR_API_KEY>"
# Initialize the Dappier SDK
app = Dappier()
```
Replace `<YOUR_API_KEY>` with actual Dappier API key which you can get from your [Dappier account](https://platform.dappier.com/home).
---
## Real-Time Search
You can perform a real-time search by providing a query. This will search for real-time data related to your query. You can pick a specific aimodel from [marketplace](https://marketplace.dappier.com/).
```python
response = app.search_real_time_data(query="What is the stock price of Apple ?", ai_model_id="am_01j06ytn18ejftedz6dyhz2b15")
```
---
## AI Recommendations
The AI Recommendations feature allows you to query for articles and other content using a specific data model. You can pick a specific datamodel from [marketplace](https://marketplace.dappier.com/).
```python
response = app.get_ai_recommendations(
query="latest tech news",
data_model_id="dm_02hr75e8ate6adr15hjrf3ikol",
similarity_top_k=5,
ref="techcrunch.com",
num_articles_ref=2,
search_algorithm="most_recent"
)
```
For detailed documentation and advanced features, refer to the official [Dappier documentation](https://docs.dappier.com/quickstart).
Raw data
{
"_id": null,
"home_page": null,
"name": "dappier",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "AI20labs",
"author_email": "dev@ai20labs.com",
"download_url": "https://files.pythonhosted.org/packages/44/3d/42fedbf21548906b0312d002e4d594ab4c3e26050ed6a9aba58289235573/dappier-0.3.1.tar.gz",
"platform": null,
"description": "# Dappier Python SDK\n\nThe Dappier Python SDK provides an easy-to-use interface for interacting with the Dappier API.\n\n---\n\n## Installation\n\nInstall the SDK using pip:\n\n```bash\npip install dappier\n```\n\n---\n\n## Initialization\n\nBelow is an example of how to use the Dappier SDK:\n\n```python\nimport os\nfrom dappier import Dappier\n\n# Set your API key as an environment variable\nos.environ[\"DAPPIER_API_KEY\"] = \"<YOUR_API_KEY>\"\n\n# Initialize the Dappier SDK\napp = Dappier()\n```\n\nReplace `<YOUR_API_KEY>` with actual Dappier API key which you can get from your [Dappier account](https://platform.dappier.com/home).\n\n---\n\n## Real-Time Search\n\nYou can perform a real-time search by providing a query. This will search for real-time data related to your query. You can pick a specific aimodel from [marketplace](https://marketplace.dappier.com/).\n\n```python\nresponse = app.search_real_time_data(query=\"What is the stock price of Apple ?\", ai_model_id=\"am_01j06ytn18ejftedz6dyhz2b15\")\n```\n\n---\n\n## AI Recommendations\n\nThe AI Recommendations feature allows you to query for articles and other content using a specific data model. You can pick a specific datamodel from [marketplace](https://marketplace.dappier.com/).\n\n```python\nresponse = app.get_ai_recommendations(\n query=\"latest tech news\",\n data_model_id=\"dm_02hr75e8ate6adr15hjrf3ikol\",\n similarity_top_k=5,\n ref=\"techcrunch.com\",\n num_articles_ref=2,\n search_algorithm=\"most_recent\"\n)\n```\n\nFor detailed documentation and advanced features, refer to the official [Dappier documentation](https://docs.dappier.com/quickstart).\n",
"bugtrack_url": null,
"license": null,
"summary": "The Dappier Python SDK provides an easy-to-use interface for interacting with the Dappier API.",
"version": "0.3.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d2f52584e1129392c3f5f0c55511c6af6c05ca74243cd6bc855f510e7d107571",
"md5": "b4c45c20f6fa5cdbba05749d9934f708",
"sha256": "32a496a4e83d000d36da2c920ec7d0c9eab23ef19fa5cdb71dd4abca0b208847"
},
"downloads": -1,
"filename": "dappier-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b4c45c20f6fa5cdbba05749d9934f708",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 8501,
"upload_time": "2024-12-26T10:40:18",
"upload_time_iso_8601": "2024-12-26T10:40:18.079334Z",
"url": "https://files.pythonhosted.org/packages/d2/f5/2584e1129392c3f5f0c55511c6af6c05ca74243cd6bc855f510e7d107571/dappier-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "443d42fedbf21548906b0312d002e4d594ab4c3e26050ed6a9aba58289235573",
"md5": "4d9159b324acf18d0c4eee37e46e60b5",
"sha256": "ea43c299efbf14468f4b42bfd6324470cdb80c45f162ef376c5b391f92db3db5"
},
"downloads": -1,
"filename": "dappier-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "4d9159b324acf18d0c4eee37e46e60b5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 5936,
"upload_time": "2024-12-26T10:40:20",
"upload_time_iso_8601": "2024-12-26T10:40:20.358688Z",
"url": "https://files.pythonhosted.org/packages/44/3d/42fedbf21548906b0312d002e4d594ab4c3e26050ed6a9aba58289235573/dappier-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-26 10:40:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dappier"
}