- Create a database using Astra DB.
- Download the secure connect bundle to obtain connection credentials for your Astra DB database.
- Get your Client ID_ and _Client Secret by creating your application token for your username and password.
Alternatively, have a teammate provide access to their Astra database.
- Install the DataStax Python driver:
DSE Python driver
- 1
See the http://docs.datastax.com/en/developer/python-dse-driver/latest/installation/[Python driver installation instructions, window="_blank"] for more information.
- Verify that the DataStax Python driver installed successfully:
DSE Python driver
- 1
The version number displays in the console output: 3.20.0
- In your existing DataStax Python driver code, modify the connection code to use the Astra DB API.In the cloud_config parameter, include the path to the secure connect bundle for your Astra DB database (`secure-connect-database_name.zip`), as shown in the following example.
DSE Python driver
- 1
- Run your Python script to connect to your Astra DB database:
- 1
If successful, the code builds, compiles, and connects to your Cassandra database.