aboutsummaryrefslogtreecommitdiffstats
path: root/config.py.sample
blob: 0f8deeb24eb8fb9b2721a599c7e21f4554723f5e (plain) (blame)
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
#
# 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',
    }