RUVIDEO
Поделитесь видео 🙏

Millions of NFT Generator Using Python

# How to generate millions of nfts using python?
Python Dash | Pillow

## **Dash | Pillow | Base64 | BytesIO**
If you prefer to read instead of watching. Here is the shared link for that:-
https://pickle-lightyear-3d3.notion.site/How-to-generate-millions-of-nfts-using-python-20fbc54f3d7d4f26890850b8c1acf4a0

?️Step 1.

Take the existing functionality that generates a single nft image by watching any of the youtube video.

?Step 2.

Figure out how to store images efficiently, the answer is simple create a function that stores the images in a format of base64 encoding or simply hashing it in terms of “a string of bytes”.

?Step 3.

?3.1. Create functions for everything.

?3.2. Create one more function for pagination loop implemented with the help of dash.

?Step 4.

As mentioned in Step 3., 3.2. is going to be our main function that takes number_of_iterations as an input which can be upto a million. This function generates the nft images on the basis of PAGE_SIZE variable which can be manipulated to your liking.

Now the question arises how to scale this images upto million image at a time ?

To tackle this issue, what we will do is store all of the images generated for the first time into the cache dictionary and make it a global variable, so when we go back to see these images again, the image will not be generated again instead it will be taken from cache dictionary directly.

Also we need to set the cache_dict as a global variable before declaring it so that its scope becomes global and we do not run into non existence of a variable error.

The final piece of this puzzle is to collect these generated images from cache dictionary, store them into a temporary array of predefined PAGE_SIZE and then styling them up a bit.

After the array of images is generated we can show them to any frontend, here we are using dash for these purpose because it comes with custom pagination loop property as well.

Your Homework ???

Optionally we can choose to save the images also. Try to implement that functionality also.

Referred Links:-
1.https://dash.plotly.com/datatable/callbacks
2.https://github.com/pixegami/python-generative-art-tutorial
3.https://www.youtube.com/watch?v=BMq2Jrvp9AA

My code is present at:-
https://github.com/prakHr/ImageAndTextVisualizations/blob/main/dashVisualizations/py37-MillionsNFTGenerator.ipynb

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Millions of NFT Generator Using Python», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.