Created
December 6, 2022 17:31
-
-
Save ShahriyarR/6ac284dfdd4fab51c64b9a19efa50379 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 readonce import ReadOnce | |
class Password(ReadOnce): | |
def __init__(self, password: str) -> None: | |
super().__init__() | |
self.add_secret(password) | |
class DBUri(ReadOnce): | |
def __init__(self, uri: str) -> None: | |
super().__init__() | |
self.add_secret(uri) | |
class DBPort(ReadOnce): | |
def __init__(self, port: int) -> None: | |
super().__init__() | |
self.add_secret(port) | |
class DBHost(ReadOnce): | |
def __init__(self, host: str) -> None: | |
super().__init__() | |
self.add_secret(host) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment