Dark Mode

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.