We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abdce4 commit b06570eCopy full SHA for b06570e
config/secrets.py
@@ -0,0 +1,24 @@
1
+# config/secrets.py
2
+
3
+import os
4
5
+class Secrets:
6
+ """
7
+ Sensitive information for the application.
8
9
+ def __init__(self):
10
+ self.API_KEY = os.getenv("API_KEY", "your_api_key_here") # Replace with your actual API key
11
+ self.DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///default.db") # Example for SQLite
12
13
+ def display_secrets(self):
14
15
+ Display the current sensitive information (for debugging purposes only).
16
17
+ print("Current Sensitive Information:")
18
+ print(f"API_KEY: {self.API_KEY}")
19
+ print(f"DATABASE_URL: {self.DATABASE_URL}")
20
21
+# Example usage
22
+if __name__ == "__main__":
23
+ secrets = Secrets()
24
+ secrets.display_secrets()
0 commit comments