Skip to main content

The Dappier Python SDK provides an easy-to-use interface for interacting with the Dappier API.

Project description

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:

pip install dappier

Initialization

Below is an example of how to use the Dappier SDK:

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.


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.

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dappier-0.2.11.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dappier-0.2.11-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file dappier-0.2.11.tar.gz.

File metadata

  • Download URL: dappier-0.2.11.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.6 Darwin/24.1.0

File hashes

Hashes for dappier-0.2.11.tar.gz
Algorithm Hash digest
SHA256 c1a0a9a66d21db3211855101cb10e1ff26eeeb525c6fbe3e89852dab78605486
MD5 5d09b1518aa37f4b8cd09fcffe64cf6c
BLAKE2b-256 e40dfc37fe1f55e8e7563cb0e5a3f1ec591a275159ccfe42164390bb98524f74

See more details on using hashes here.

File details

Details for the file dappier-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: dappier-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.6 Darwin/24.1.0

File hashes

Hashes for dappier-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0b8fa40fdd9958c40d77f81d5edd871030dbe222c6f25d611c8fdbe7d4913cf3
MD5 6cb8353bb27877f034ad438be2eb88db
BLAKE2b-256 f194f0ab89b701ac8b09d66624f57d003ecdd7b44ee4ffc1071238999206d4bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page