frompydanticimportField,SecretStrfromprefect.blocks.coreimportBlockclassSecret(Block):""" A block that represents a secret value. The value stored in this block will be obfuscated when this block is logged or shown in the UI. Attributes: value: A string value that should be kept secret. Example: ```python from prefect.blocks.system import Secret secret_block = Secret.load("BLOCK_NAME") # Access the stored secret secret_block.get() ``` """_logo_url="https://example.com/logo.png"value:SecretStr=Field(default=...,description="A string value that should be kept secret.")# ... indicates it's a required fielddefget(self):returnself.value.get_secret_value()
To list your integration in the Prefect Integrations Catalog, submit a PR to the Prefect repository adding a file to the docs/integrations/catalog directory with details about your integration. Please use TEMPLATE.yaml in that folder as a guide.