Skip to content

Commit 798d4cc

Browse files
author
deec
committed
updates to README.md
1 parent 5462fae commit 798d4cc

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

scripts/smoke_connx.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import sys
2+
from pathlib import Path
3+
4+
# Add project root to PYTHONPATH
5+
PROJECT_ROOT = Path(__file__).resolve().parents[1]
6+
sys.path.insert(0, str(PROJECT_ROOT))
7+
8+
from dotenv import load_dotenv
9+
load_dotenv()
10+
11+
from connx_server import get_connx_connection
12+
13+
14+
def main():
15+
conn = get_connx_connection()
16+
try:
17+
print("Successfully connected to CONNX")
18+
finally:
19+
conn.close()
20+
21+
22+
if __name__ == "__main__":
23+
main()

0 commit comments

Comments
 (0)