-
-
Save simonw/d6c3500ea0c77499034df6b4e409e3e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datasette_secrets import Secret | |
from datasette import hookimpl | |
@hookimpl | |
def register_secrets(): | |
return [ | |
Secret( | |
name="DEMO_SECRET_ONE", | |
description="First demo secret", | |
), | |
Secret( | |
name="DEMO_SECRET_TWO", | |
description="Second demo secret", | |
obtain_url="https://www.example.com/", | |
obtain_label="Example", | |
), | |
Secret( | |
name="DEMO_SECRET_THREE", | |
obtain_url="https://three.example.com/", | |
obtain_label="Example 3", | |
), | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[project] | |
name = "datasette-secrets-demo" | |
version = "0.2" | |
description = "Some demo secrets" | |
dependencies = [ | |
"datasette-secrets" | |
] | |
[project.entry-points.datasette] | |
secrets_demo = "datasette_secrets_demo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment