Skip to content

Commit 3417022

Browse files
committed
Reformat example code in README
1 parent c9eceaa commit 3417022

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ the [Password file, LDAP or Salesforce authentication type](https://trino.io/doc
137137

138138
```python
139139
from sqlalchemy import create_engine
140-
140+
141141
engine = create_engine("trino://<username>:<password>@<host>:<port>/<catalog>")
142-
143-
# or
142+
143+
# or as connect_args
144144
from trino.auth import BasicAuthentication
145145
engine = create_engine(
146146
"trino://<username>@<host>:<port>/<catalog>",
@@ -161,7 +161,7 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
161161
```python
162162
from trino.dbapi import connect
163163
from trino.auth import JWTAuthentication
164-
164+
165165
conn = connect(
166166
user="<username>",
167167
auth=JWTAuthentication("<jwt_token>"),
@@ -174,10 +174,10 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
174174

175175
```python
176176
from sqlalchemy import create_engine
177-
177+
178178
engine = create_engine("trino://<username>@<host>:<port>/<catalog>/<schema>?access_token=<jwt_token>")
179-
180-
# or
179+
180+
# or as connect_args
181181
from trino.auth import JWTAuthentication
182182
engine = create_engine(
183183
"trino://<username>@<host>:<port>/<catalog>",
@@ -252,7 +252,7 @@ The OAuth2 token will be cached either per `trino.auth.OAuth2Authentication` ins
252252

253253
engine = create_engine("trino://<username>@<host>:<port>/<catalog>/<schema>?cert=<cert>&key=<key>")
254254

255-
# or
255+
# or as connect_args
256256
engine = create_engine(
257257
"trino://<username>@<host>:<port>/<catalog>",
258258
connect_args={
@@ -272,7 +272,7 @@ the [`Kerberos` authentication type](https://trino.io/docs/current/security/kerb
272272
```python
273273
from trino.dbapi import connect
274274
from trino.auth import KerberosAuthentication
275-
275+
276276
conn = connect(
277277
user="<username>",
278278
auth=KerberosAuthentication(...),

0 commit comments

Comments
 (0)