Connecting
Connecting With a Dialect URL
Establishing a connection using SQLAlchemy requires a specific URL format.from sqlalchemy import create_engine engine = create_engine("reckonaccountshosted:///?SubscriptionKey=test;CountryVersion=2021.R2.AU;CompanyFile=Q:/CData Software.QBW;User=test;Password=test;InitiateOAuth=GETANDREFRESH;CallbackURL=http://localhost:33333;OAuthClientId=MyOAuthClientID;OAuthClientSecret=MyOAuthClientSecret;")
For SQLAlchemy 2.0, the dialect name is reckonaccountshosted_2. To establish a connection, use the following URL format:
from sqlalchemy import create_engine engine = create_engine("quickbooks_2:///?User=test;Password=test;URL=http://localhost:8166;")