mirror of
https://github.com/simon987/music-graph-scripts.git
synced 2025-12-13 22:59:03 +00:00
2.0 rewrite wip
This commit is contained in:
22
config.py
Normal file
22
config.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
|
||||
config = {
|
||||
"DB": "musicbrainz_db",
|
||||
"USER": "musicbrainz",
|
||||
"PASSWORD": "musicbrainz",
|
||||
"HOST": "127.0.0.1",
|
||||
"PORT": 5433,
|
||||
|
||||
"LASTFM_APIKEY": os.environ.get("LASTFM_APIKEY"),
|
||||
"LASTFM_USER": os.environ.get("LASTFM_USER"),
|
||||
|
||||
"SPOTIFY_CLIENTID": os.environ.get("SPOTIFY_CLIENTID"),
|
||||
"SPOTIFY_SECRET": os.environ.get("SPOTIFY_SECRET"),
|
||||
}
|
||||
|
||||
|
||||
def connstr():
|
||||
return " dbname=%s user=%s password=%s host=%s port=%d" % (
|
||||
config["DB"], config["USER"], config["PASSWORD"],
|
||||
config["HOST"], config["PORT"]
|
||||
)
|
||||
Reference in New Issue
Block a user