-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.py
More file actions
65 lines (54 loc) · 1.55 KB
/
Copy pathdatabase.py
File metadata and controls
65 lines (54 loc) · 1.55 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# database.py
JOBS = {
1: {
"id": 1,
"required_skills": ["Python", "SQL", "FastAPI"],
"raw_text": "Looking for Python backend intern with SQL and FastAPI experience"
},
2: {
"id": 2,
"required_skills": ["Machine Learning", "Pandas", "NumPy"],
"raw_text": "Hiring ML intern with strong Python, Pandas and NumPy skills"
},
3: {
"id": 3,
"required_skills": ["Python", "Deep Learning"],
"raw_text": "AI intern role focused on deep learning and Python"
}
}
# ---------------- MOCK RESUME DATA ---------------- #
RESUMES = {
1: {
"id": 1,
"skills": ["Python", "Pandas"],
"projects": [
{
"title": "Loan Approval System",
"tech": ["Python", "Sklearn"]
}
],
"experience_years": 0,
"raw_text": "B.Tech AI student with Python and ML projects"
},
2: {
"id": 2,
"skills": ["Python", "SQL", "FastAPI"],
"projects": [
{
"title": "Resume Ranker",
"tech": ["Python", "FastAPI"]
}
],
"experience_years": 1,
"raw_text": "Backend focused student with FastAPI and SQL experience"
}
}
# ---------------- ACCESS FUNCTIONS ---------------- #
def get_job_by_id(job_id: int):
return JOBS.get(job_id)
def get_all_jobs():
return list(JOBS.values())
def get_resume_by_id(resume_id: int):
return RESUMES.get(resume_id)
def get_all_resumes():
return list(RESUMES.values())