lightcycle-nft-generator

所属分类:NFT
开发工具:Python
文件大小:36KB
下载次数:0
上传日期:2021-10-02 01:47:07
上 传 者sh-1993
说明:  光循环nft发生器,,
(lightcycle-nft-generator,,)

文件列表:
Makefile (1176, 2021-10-02)
config.yaml.example (2678, 2021-10-02)
nftgen.py (4040, 2021-10-02)
projects (0, 2021-10-02)
projects\example (0, 2021-10-02)
projects\example\traits (0, 2021-10-02)
projects\example\traits\bottom (0, 2021-10-02)
projects\example\traits\bottom\blue.png (7139, 2021-10-02)
projects\example\traits\bottom\green.png (6076, 2021-10-02)
projects\example\traits\top (0, 2021-10-02)
projects\example\traits\top\black.png (3647, 2021-10-02)
projects\example\traits\top\red.png (5523, 2021-10-02)
requirements-dev.txt (34, 2021-10-02)
requirements.txt (28, 2021-10-02)
src (0, 2021-10-02)
src\__init__.py (0, 2021-10-02)
src\utils.py (38906, 2021-10-02)
tests (0, 2021-10-02)
tests\test_utils.py (8255, 2021-10-02)

# lightcycle-nft-generator Generate NFTs with metaplex standard ## INSTALL 1. Create venv ``` python3 -m venv venv ``` 2. Activate venv ``` source venv/bin/activate ``` 3. Install requirements ``` pip install -r requirements.txt ``` ### DEVELOP 1. Install development requirements ``` pip install -r requirements-dev.txt ``` 2. Run tests ``` pytest ``` ## USAGE 1. Create config ``` cp config.yaml.example config.yaml ``` 2. Edit config to change `REPLACEME` with your address ``` vim config.yaml ``` 3. Initialize project ``` nftgen.py --project example --config config.yaml --initialize ``` 4. Add your images to the projects/example/traits/ folders that were created by the previous command 5. Generate metadata ``` nftgen.py --project example --config config.yaml --generate-metadata ``` 6. Generate images from metadata ``` nftgen.py --project example --config config.yaml --generate-images ``` 7. Validate assets, which checks for minimum rarity and missing values ``` nftgen.py --project example --config config.yaml --validate ``` 8. Combine assets, which copies the images and metadata into one folder ``` nftgen.py --project example --config config.yaml --combine-assets ``` You must have `solana-keygen` available if you want to generate the environment automatically: 1. Create react env for frontend ``` nftgen.py --project example --config config.yaml --react-env --react-env-start-date "01 Jan 31 12:00:00 GMT" --react-env-keypair ~/.config/solana/devnet-lightcycle.json ``` Note: there is a Makefile for convenience, update the environmental variables before using ## Experimental - Add translation csv file, i.e. english.csv, to the translations subdirectory to apply translations via --combine-assets

近期下载者

相关文件


收藏者