This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
import psycopg2.extras | |
HOST = "localhost" | |
PASSWORD = "password" | |
conn = psycopg2.connect(host=HOST, user="clair", password=PASSWORD, database="clair", port="5432") | |
print("Database opened successfully") | |
cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import requests | |
import logging | |
#logging.basicConfig(level=logging.DEBUG) | |
# Instantiate the parser | |
parser = argparse.ArgumentParser(description='Testing robot federation') | |
parser.add_argument('action', type=str, |
OlderNewer