Skip to main content

A Python SDK for interacting with the My API service.

Project description

Datura

Datura API in Python

Installation

pip install datura-py

Usage

Import the package and initialize the Datura client with your API key:

    from datura_py import Datura

    datura = Datura(api_key="your-api-key")

Common requests

    
    # Desearch AI Search
    result = datura.ai_search(
        prompt="Bittensor",
        tools=[
            "Web Search",
            "Hacker News Search",
            "Reddit Search",
            "Wikipedia Search",
            "Youtube Search",
            "Twitter Search",
            "ArXiv Search"
        ],
        model="NOVA",
        date_filter="PAST_24_HOURS",
        streaming=False,
    )

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

datura_py-0.0.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

datura_py-0.0.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file datura_py-0.0.2.tar.gz.

File metadata

  • Download URL: datura_py-0.0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for datura_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b71dce64a0f040ed64fbb70990efb235cef5d8cf507b572c4a47cc32eb5eb62f
MD5 4ed8453690c91554e531dc5f96dfd93e
BLAKE2b-256 42c55319af0dddc8bafbb7994df5668559c6458729f4fa4429a3676128c770af

See more details on using hashes here.

File details

Details for the file datura_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: datura_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for datura_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 434415c332d2cf85bbeb37be0ffbe0833d387d0483ed2742749225d602cb52e0
MD5 d6f64c60b888f1a8872a2b6e01a3e432
BLAKE2b-256 f27d13f1a84de65897fd42fdd87ab30da42bdee0d1370b9b546347eea06ed57c

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