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
# Use this with a slow cron - I had mine set to run every 24 bours and keep copies of the last 5 releases | |
from os import environ, listdir, makedirs | |
from os.path import join, exists, getmtime, isdir | |
from shutil import rmtree | |
from json import loads | |
from asyncio import run, create_task, sleep, create_subprocess_shell | |
from asyncio.subprocess import PIPE, STDOUT | |
from aiohttp import ClientSession | |
from logging import basicConfig, INFO, DEBUG, WARNING, getLogger |