CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
util.py18 linesDownload Raw Back to wheel
1from __future__ import annotations2 3import base644import logging5 6log = logging.getLogger("wheel")7 8 9def urlsafe_b64encode(data: bytes) -> bytes:10    """urlsafe_b64encode without padding"""11    return base64.urlsafe_b64encode(data).rstrip(b"=")12 13 14def urlsafe_b64decode(data: bytes) -> bytes:15    """urlsafe_b64decode without padding"""16    pad = b"=" * (4 - (len(data) & 3))17    return base64.urlsafe_b64decode(data + pad)18 
Aluode/PerceptionLabPortable · CoolFace