KDB.AI Cloud Setup
This section details the steps to setup KDB.AI Cloud. Ensure your environment meets all the necessary pre-requisites before proceeding.
Sign up
Sign up for KDB.AI Cloud here.
Log in to KDB.AI Cloud
To log in:
- Click on the link provided in your welcome email.
- Enter your username and password as created when you registered.
- Click Sign In.
Connect to your database
- In the Endpoints section, copy the URL using the Copy button.
- Paste the endpoint URL into a notepad until you need it in the Connect a KDB.AI session step.
Create an API key
- To create an API key, click Add new API Key.
- Copy the key code to your clipboard. It is only visible once. Once this window is closed, you cannot copy the code again.
-
Paste the API key into a notepad until you need it in the Connect a KDB.AI session step.
You can generate up to three API keys. If you mislay the API key code, you can delete the existing API key and then generate a new one.
Install KDB.AI client
-
In a command window, use the following pip command to install the latest version of the KDB.AI client:
pip install kdbai-client
KDB.AI supports Python versions >= 3.8
Ensure curl is installed, for example, `which curl`
Connect a KDB.AI session
-
Establish and verify the connection with your KDB.AI session:
import kdbai_client as kdbai session = kdbai.Session(endpoint="https://cloud.kdb.ai/instance/XXX", api_key="XXX")
Verify session
-
Check if your connection has been successful using the
list
function:session.list()
An empty list should be returned as no tables have been created yet.
Next steps
Go to our Quickstart Guide page to set up your table schema and start inserting data.