Skip to content

Commit b06570e

Browse files
authored
Create secrets.py
1 parent 3abdce4 commit b06570e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

config/secrets.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)