Python credit scoring model ft. Covalent HQ and a self-built off-chain encryptor.
Install necessary Python modules
pip install -r requirements.txt
Create an .env
file
# basic
DATABASE_URL=url_of_database
COVALENT_KEY=covalent_api_key
ETH_ADDRESS=your_metamask_wallet_address
COINMARKETCAP_KEY=coinmarketcap_api_key
# for PUSH notification
db_table=postgres_table_name
host=postgres_host_name
dbname=postgres_database_name
user=postgres_user_name
password=postgres_database_password
push_url_update=push_notification_url
push_url_leaderboard=push_notification_leaderboard
💡 If you depoy this Python backend as an Heroku app, then you can spin up a Heroku postgres database and use those database's credentials.
Test API endpoints on Swagger passing a payload into the request body and simulating a response
uvicorn main:app --reload