Skip to main content

Python SDK Setup

The Data Neuron Python SDK allows you to integrate powerful natural language querying capabilities directly into your Python applications.

  1. Import the DataNeuron class:
from dataneuron import DataNeuron
  1. Initialize DataNeuron with your database configuration and context:
dn = DataNeuron(db_config='path/to/database.yaml', context='your_context_name')
dn.initialize()
  1. (Optional) Set up client context for multi-tenant scenarios:
dn.set_client_context("client_123")