Generating NFT Metadata with Python
Learn how to generate NFT metadata with Python and IPFS.
What is Metadata?
1. First, we need to create an IPFS bucket on Filebase.
2. Select ‘Buckets’ from the left side bar menu, or navigate to.

3. Enter a bucket name and choose the IPFS storage network to create the bucket.

4. Next, run the following command to clone the Github repository generative-art-nft:
generative-art-nft:5. Then, install the required dependencies:
6. Navigate into the generative-art-nft directory. Run the following command to generate your NFT collection:
generative-art-nft directory. Run the following command to generate your NFT collection:

7. Now, upload your NFTs to Filebase using the web console and selecting ‘Folder’, then selecting ‘images’ folder to be uploaded:

8. You will see your folder uploaded as a single object:

9. Copy the CID of your folder:

10. Open the file metadata.py in your generative-nft-collection directory. Edit the following values:
metadata.py in your generative-nft-collection directory. Edit the following values:
11. Next, let’s generate the metadata for these NFTs. Run the following command:


12. Then, use the web console and select ‘Folder’, then select the ‘json’ folder to be uploaded.
13. Navigate to your IPFS Folder to see your files:
Last updated