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
# pip3 install pypistats | |
import pypistats | |
def main(): | |
packages = ["pygrl", "python-telegram-broadcast"] | |
for pkg in packages: | |
print(f"{pkg}\n") | |
stats = pypistats.overall(pkg, mirrors=False) | |
print(stats) |
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 random as rn | |
from multiprocessing.pool import Pool | |
from queue import Queue | |
import matplotlib.pyplot as plt | |
def sampling(n: int, minIndex: int, maxIndex: int) -> list[int]: | |
lst = [rn.randint(minIndex, maxIndex-1) for _ in range(n)] | |
return lst |
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
""" | |
# requirements.txt | |
python-telegram-bot[rate-limiter]==20.1 | |
""" | |
from telegram import Update | |
from telegram.ext import CallbackContext | |
async def photo_handler(update: Update, context: CallbackContext): |