blob: 42bbac46676bcd577fde5a0e76625840d27d0905 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from requests.auth import HTTPBasicAuth
#
# 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: HTTPBasicAuth('username', 'password')
# Authenticate using username/password
#
def get_config():
return {
'db_conn_str': 'dbname=pdbtest',
'db_schema': 'peeringdb',
'auth': HTTPBasicAuth('use_a_dedicated_peeringdb_account', 'and_a_long_random_password'),
}
|