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.6.tar.gz (9.7 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.6-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datura_py-0.0.6.tar.gz
  • Upload date:
  • Size: 9.7 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.6.tar.gz
Algorithm Hash digest
SHA256 def99c3f2231160ba0999126380f35bcece4bc80d3bd9b51e8a83506394e6e63
MD5 fd5fddd0f212f13a65e0f663d17b81bc
BLAKE2b-256 8c73ac6bcd07736afe064143a7c58847a7ac0afff234472eb7a7603b6cede646

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datura_py-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ce24107ba4f08141f53c38547fbc40069e579eb8a6a79cd0c8c2fea7563fa8cb
MD5 cf92b32d77a5ee7f5c48c77e74581452
BLAKE2b-256 6c40b591714e01f93687ca71d99ab6a9ab2405069f68493624d392d880c54bd6

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