Skip to content

Instantly share code, notes, and snippets.

View ctheune's full-sized avatar

Christian Theune ctheune

View GitHub Profile
@ctheune
ctheune / component.py
Created May 21, 2021 07:03
batou example for managing system stuff with a traditional package manager
from batou.component import Component
from batou.lib.archive import Extract
from batou.lib.download import Download
from batou.lib.file import File
from batou.utils import Address
import os.path
import socket
import xmlrpc.client
# /// script
# requires-python = ">=3.12"
# dependencies = [ "httpx", "Pillow" ]
# ///
import asyncio
import base64
import os
import pathlib
import random
import time