Python Metadata API for OpenSea and ERC 721 Smart Contracts
This is a very simple sample Python Flask app for serving the ERC721 metadata for the Opensea, as specified in the OpenSea developer docs.
You'll need a machine with Python 3 installed.
Create a virtualenv with Python3 and run
pip install -r requirements.txt.
Run the API with
python app.py and hit http://localhost:5000/api/artpiece/1
To deploy on Heroku, set the environment variables on your Heroku instance and deploy by pushing to your Heroku remote. Enpoint is https://aicryptoart-pyapp.herokuapp.com/api/artpiece/3