-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
39 lines (31 loc) · 1008 Bytes
/
config.py
File metadata and controls
39 lines (31 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""
Global configuration for the tender intelligence system.
Pipeline role:
Centralizes environment-dependent variables and static thresholds.
Used across scrapers (portals), matching logic (thresholds), and the
scheduler (timing).
Key responsibilities:
- Managing credential retrieval from environment variables.
- Defining the business logic for 'relevance' via MATCH_THRESHOLD.
- Configuring the execution window for the background scheduler.
Notes:
- Relies on a .env file for sensitive information like SMTP credentials.
"""
import os
from dotenv import load_dotenv
load_dotenv()
# Email
SENDER_EMAIL = os.getenv("SENDER_EMAIL")
SENDER_PASSWORD = os.getenv("SENDER_PASSWORD")
RECEIVER_EMAIL = os.getenv("RECEIVER_EMAIL")
# Matching
MATCH_THRESHOLD = 0.65
# Scheduler
SEND_TIME_HOUR = 21
SEND_TIME_MINUTE = 0
# Blocklist
BLOCKLIST_KEYWORDS = [
"road", "civil", "construction", "furniture",
"food", "catering", "sanitation", "vehicle",
"parking", "horticulture", "housekeeping"
]