Skip to content

prefect_stitch.credentials

Stitch credentials block

StitchCredentials

Block used to manage authentication with Stitch.

Parameters:

Name Type Description Default
access_token SecretStr

The Access token to use to connect to Stitch.

required
Example

Load stored Stitch credentials

from prefect_stitch.credentials import StitchCredentials
stitch_credentials_block = StitchCredentials.load("BLOCK_NAME")

Source code in prefect_stitch/credentials.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class StitchCredentials(Block):
    """
    Block used to manage authentication with Stitch.
    Args:
        access_token (SecretStr): The Access token to use to connect to Stitch.

    Example:
        Load stored Stitch credentials
        ```python
        from prefect_stitch.credentials import StitchCredentials
        stitch_credentials_block = StitchCredentials.load("BLOCK_NAME")
        ```
    """  # noqa E501

    access_token: SecretStr

    _block_type_name = "Stitch Credentials"

    _logo_url = "https://github.com/PrefectHQ/prefect/blob/main/docs/img/collections/stitch.png?raw=true"  # noqa