Skip to content

Instantly share code, notes, and snippets.

@ShahriyarR
Created December 6, 2022 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShahriyarR/6ac284dfdd4fab51c64b9a19efa50379 to your computer and use it in GitHub Desktop.
Save ShahriyarR/6ac284dfdd4fab51c64b9a19efa50379 to your computer and use it in GitHub Desktop.
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