prefect_transform.credentials
Transform credentials block
TransformCredentials
Block used to manage authentication with Transform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_key |
SecretStr
|
The API key to use to connect to Transform. |
required |
mql_server_url |
str
|
The URL of the Transform MQL server. |
required |
Example
Load stored Transform credentials
from prefect_transform.credentials import TransformCredentials
transform_credentials_block = TransformCredentials.load("BLOCK_NAME")
Source code in prefect_transform/credentials.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
get_client
Return an MQLClient that can be used to interact with Transform server.
Returns:
Type | Description |
---|---|
MQLClient
|
An |
Source code in prefect_transform/credentials.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|