-
Notifications
You must be signed in to change notification settings - Fork 0
/
FBtestDB.py
61 lines (57 loc) · 2.13 KB
/
FBtestDB.py
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
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db as firebase_db
from firebase_admin import firestore
cred = credentials.Certificate("serviceAccountKey2.json")
firebase_admin.initialize_app(cred)
db = firestore.client()
#ref = db.child('Students')
data = {
"22241A05K4":
{
"name": "Ekanth Sai Sundar Yellanki",
"major": "Computer Science and Engineering",
"Design and Analysis of Algorithms": " ",
"Computer Organisation": " ",
"Operating System": " ",
"Full Stack Web Development": " ",
"Discrete Mathematics": " ",
"Real Time Research Project": " ",
"Environemental Science": " ",
"C# and VB .NET Lab": " ",
"Full Stack Web Development Lab": " ",
"Operating Systems Lab": " "
},
"22241A05D2":
{
"name": "Siddarth Mahesh Balijepally",
"major": "Computer Science and Engineering",
"Design and Analysis of Algorithms": " ",
"Computer Organisation": " ",
"Operating System": " ",
"Full Stack Web Development": " ",
"Discrete Mathematics": " ",
"Real Time Research Project": " ",
"Environemental Science": " ",
"C# and VB .NET Lab": " ",
"Full Stack Web Development Lab": " ",
"Operating Systems Lab": " "
},
"22241A0506":
{
"name": "Sujay Anishetti",
"major": "Computer Science and Engineering",
"Design and Analysis of Algorithms": " ",
"Computer Organisation": " ",
"Operating System": " ",
"Full Stack Web Development": " ",
"Discrete Mathematics": " ",
"Real Time Research Project": " ",
"Environemental Science": " ",
"C# and VB .NET Lab": " ",
"Full Stack Web Development Lab": " ",
"Operating Systems Lab": " "
}
}
for key, value in data.items():
ref.child(key).set(value)