-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample1.py
More file actions
39 lines (26 loc) · 747 Bytes
/
example1.py
File metadata and controls
39 lines (26 loc) · 747 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
#!/usr/bin/env python3
"""
A simple example python file
"""
import os
from xkye import IO as io
def main():
""" Example python implementation for XKYE Library"""
xky_file = "example1.xky"
dir_path = os.path.dirname(os.path.realpath(__file__))
xky_file = dir_path + "/" + xky_file
xfile = io(xky_file)
xfile.read()
print(xfile.get("pgadmin"))
print(xfile.get("pgadminpwd"))
print(xfile.get("pghost"))
print(xfile.get("pgport"))
print(xfile.get("pgadmindb"))
print(xfile.get("adminpwd"))
print(xfile.get("dwzypwd"))
print(xfile.get("shardid"))
print(xfile.get("dwzyuser"))
print(xfile.get("dwzydb"))
print(xfile.getSpan("shard"))
if __name__ == '__main__':
main()