Skip to content

Instantly share code, notes, and snippets.

View Archmonger's full-sized avatar

Mark Bakhit Archmonger

View GitHub Profile
"""This script changes all Radarr movie folders to `{current_folder_name} {tmdb-xxx}` format
and removes characters that are illegal on Windows from the path."""
import json
import pathlib
import re
import sys
from requests import request
"""This script changes all Sonarr series folders to `{current_folder_name} {tvdb-xxx}` format
and removes characters that are illegal on Windows from the path."""
import json
import pathlib
import re
import sys
from requests import request
import asyncio
import contextlib
import sys
import time
from pathlib import Path
from uuid import uuid4
from aiofile import AIOFile
from aiofiles import open as aio_open
from anyio import open_file as anyio_open
from __future__ import annotations
import re
from pprint import pprint
from typing import Any, Callable, Literal, Awaitable, Union
from dataclasses import dataclass
# >>> React props <<<
# https://beta.reactjs.org/reference/react-dom/components/common#common-props
@Archmonger
Archmonger / html_syntaxes.py
Last active February 14, 2025 00:46
Experimental syntaxes for writing HTML within Python
# type: ignore
# pylint: skip-file
# <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
# <div class="modal-dialog">
# <div class="modal-content">
# modal_header(title="Modal Title")
# modal_body()
# <div class="modal-footer">
# <hr>