Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightcycleresearch/lightcycle-nft-generator
https://github.com/lightcycleresearch/lightcycle-nft-generator
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightcycleresearch/lightcycle-nft-generator
- Owner: lightcycleresearch
- Created: 2021-09-16T06:09:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T01:47:07.000Z (about 3 years ago)
- Last Synced: 2024-08-02T06:16:01.602Z (4 months ago)
- Language: Python
- Size: 87.9 KB
- Stars: 31
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-solana-nfts - Lifecycle NFT generator
- awesome-solana-nfts-v2 - Lifecycle NFT generator
README
# 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