Skip to main content

A Python SDK for interacting with the Datura 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.4.tar.gz (9.8 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.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datura_py-0.0.4.tar.gz
  • Upload date:
  • Size: 9.8 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.4.tar.gz
Algorithm Hash digest
SHA256 2352b31af5a02899df4fff47d3aee3cf395688beb7dffb595581e7b25ed27b7c
MD5 d0c29d810bb4fd3d2793580cea2b5d86
BLAKE2b-256 67bffecb635522951a7a141abe60cc08954f1676e578e7d850dd80a316b9126a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datura_py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dbab9dce00e6f24c0e9ad6e411ab8c5511978620d0356cd1aea284f172cb9f5f
MD5 a65cf66528dd8ee86a939c911a928e9b
BLAKE2b-256 2fc2b8c7961200bd1b4fe78907d1fb942dcc9c933ccc68795576a239ea012c18

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