How to instantiate a Data Context without a yml file

This article is for comments to: https://docs.greatexpectations.io/en/latest/how_to_guides/configuring_data_contexts/how_to_instantiate_a_data_context_without_a_yml_file.html

Please comment +1 if this How to is important to you.

1 Like

What are possible values of class_name and drivername?

"my_sqlalchemy_datasource": DatasourceConfig(
            class_name="SqlAlchemyDatasource",
            credentials={
                "drivername": "custom_drivername",
                "host": "custom_host",
                "port": "custom_port",
                "username": "${USERNAME_FROM_ENVIRONMENT_VARIABLE}",
                "password": "${PASSWORD_FROM_ENVIRONMENT_VARIABLE}",
                "database": "custom_database",
            },
        )

+1