Skip to content

Instantly share code, notes, and snippets.

View Paillat-dev's full-sized avatar

Paillat Paillat-dev

View GitHub Profile
@Paillat-dev
Paillat-dev / require_extra.py
Created January 21, 2026 10:16
python `require_extra` util
import importlib
import importlib.metadata as md
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Mapping
class ExtraRequirementError(RuntimeError):
"""Raised when an extra/backend requirement is not satisfied."""
@Paillat-dev
Paillat-dev / TOKEN
Last active July 15, 2024 09:16 — forked from almostSouji/TOKEN
You leaked your token. This is probably how you get here
Do not leak your token!
MTA1NDYwNTMwNzY1MDc2ODk5OA.G8ucXS.MenkMbFq54QhboUVGpRg-nVybgpDHCXF3GsZ6E
MTI1NDkwMjc3ODg1ODU3Mzg2Ng.G8dL-l.73rl5SGjqTNkGhRxeLgxgNAzf6uotYu-Vbl8jQ