This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import logging | |
from aiogram import Dispatcher, Bot, F | |
from aiogram.filters import Command | |
from aiogram.types import Message, CallbackQuery | |
from aiogram.utils.keyboard import InlineKeyboardBuilder | |
router = Dispatcher() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INPUT_DATA = [ | |
["a", "111", "a1", "a11"], | |
["---------------------"], | |
["b", "222", "b2", "b22"], | |
["_____________________"], | |
["c", "333", "c3", "c33"], | |
["_____________________"], | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from concurrent.futures import ProcessPoolExecutor | |
from typing import Callable, List | |
from time import sleep, monotonic | |
from random import randint | |
from functools import partial | |
TASKS_NUMBER = 9 | |