To establish a connection to an ASE database, import the connector and use the connect() method with your connection parameters.
First, import the ASE connector module:
import devart.ase as ase
Call the connect() method with the connection parameters for your ASE server and obtain a connection object.
my_connection = ase.connect(
Server="your_server",
Database="your_database",
UserId="your_username",
Password="your_password"
)
Replace the example values with your actual connection values.
For more information, see Connection parameters.