# # Config keys # =========== # # db_conn_str: libpq database connection string # https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING # # db_schema: database schema name # If not specified, it defaults to 'peeringdb' # # auth: 'API-key' # Authenticate using an API-key. # # https://docs.peeringdb.com/blog/api_keys/ # https://github.com/peeringdb/peeringdb/blob/master/docs/api_keys.md # # auth: HTTPBasicAuth('username', 'password') # Authenticate using username/password (DEPRECATED) # requires: from requests.auth import HTTPBasicAuth # def get_config(): return { 'db_conn_str': 'dbname=pdbtest', 'db_schema': 'peeringdb', 'auth': 'obtain_an_api-key_from_peeringdb_com', }