1 Star 0 Fork 0

ProjectOpenSea/metadata-api-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Python Metadata API for OpenSea Creatures

About

This is a very simple sample Python Flask app for serving the ERC721 metadata for the OpenSea creatures ERC721 contracts, as specified in the OpenSea developer docs.

Requirements

Python 3

You'll need a machine with Python 3 installed.

Google Cloud Storage

You'll need a Google Cloud Storage account with a project, bucket, and credentials.

Setup

Create a .env file with the following:

export GOOGLE_STORAGE_PROJECT="<your_project>"
export GOOGLE_STORAGE_BUCKET="<your_bucket>"

Place your Google cloud storage credentials in a file called credentials/google-storage-credentials.json.

Create a virtualenv with Python3 and run pip install -r requirements.txt.

Running

Run the API with python app.py and hit http://localhost:5000/api/creature/1

Deploying

To deploy on Heroku, set the GOOGLE_STORAGE_PROJECT and GOOGLE_STORAGE_BUCKET environment variables on your Heroku instance and deploy by pushing to your Heroku remote.

空文件

简介

Simple API for serving ERC721 metadata 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ProjectOpenSea/metadata-api-python.git
git@gitee.com:ProjectOpenSea/metadata-api-python.git
ProjectOpenSea
metadata-api-python
metadata-api-python
master

搜索帮助