Previous Next JavaScript must be enabled to correctly display this content

## Connect to Database Using SDK Driver

This section describes how you can connect to KVLite in a container using SDK driver.

The Oracle NoSQL Database SDK drivers can be used to access either the Oracle NoSQL Database cloud service, cloud simulation, or an on-premise installation via the Oracle NoSQL Database Proxy. For more details, see About Oracle NoSQL Database SDK drivers.

The Oracle NoSQL Database drivers are available for various programming languages. Here is a snippet from a Python program showing the connection to the KVLite instance that we are running inside a container.

    def get_connection_onprem():

       kvstore_endpoint ='http://localhost:8080'
       provider = StoreAccessTokenProvider()
       return NoSQLHandle(NoSQLHandleConfig(kvstore_endpoint, provider))

If you are using an external host, provide the name of the host machine instead of `localhost`.