[M] Move distro.py to distros/__init__.py

This commit is contained in:
Hykilpikonna 2022-12-11 07:40:53 -05:00
parent 0c4b239266
commit bc2a8dbf3c
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26
329 changed files with 340 additions and 338 deletions

View file

@ -2,8 +2,6 @@ from __future__ import annotations
import string
asciis: list['AsciiArt'] = []
class AsciiArt:
name: str
@ -16,10 +14,7 @@ class AsciiArt:
self.color = color
self.ascii = ascii
self.name = name or self.get_friendly_name()
asciis.append(self)
def get_friendly_name(self) -> str:
return self.match.split("|")[0].strip(string.punctuation + '* ') \
.replace('"', '').replace('*', '')

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aix = AsciiArt(match=r'''"AIX"*''', color='2 7', ascii=r"""
${c1} `:+ssssossossss+-`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
almalinux = AsciiArt(match=r'''"AlmaLinux"*''', color='1 3 4 2 6', ascii=r"""
${c1} 'c:.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
alpine = AsciiArt(match=r'''"Alpine"*''', color='4 5 7 6', ascii=r"""
${c1} .hddddddddddddddddddddddh.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
alpine_small = AsciiArt(match=r'''"alpine_small"''', color='4 7', ascii=r"""
${c1} /\ /\

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
alter = AsciiArt(match=r'''"Alter"*''', color='6 6', ascii=r"""
${c1} %,

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
amazon = AsciiArt(match=r'''"Amazon"*''', color='3 7', ascii=r"""
${c1} `-/oydNNdyo:.`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
amogos = AsciiArt(match=r'''"AmogOS"*''', color='15 6', ascii=r"""
${c1} ___________

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
anarchy = AsciiArt(match=r'''"Anarchy"*''', color='7 4', ascii=r"""
${c2}..${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
android = AsciiArt(match=r'''"Android"*''', color='2 7', ascii=r"""
${c1} -o o-

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
android_small = AsciiArt(match=r'''"android_small"*''', color='2 7', ascii=r"""
${c1} ;, ,;

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
antergos = AsciiArt(match=r'''"Antergos"*''', color='4 6', ascii=r"""
${c2} `.-/::/-``

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
antix = AsciiArt(match=r'''"antiX"*''', color='1 7 3', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aosc_os = AsciiArt(match=r'''"AOSC OS"*''', color='4 7 1', ascii=r"""
${c2} .:+syhhhhys+:.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aosc_os_retro = AsciiArt(match=r'''"AOSC OS/Retro"*''', color='4 7 1 3', ascii=r"""
${c2} .........

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aoscosretro_small = AsciiArt(match=r'''"aoscosretro_small"''', color='4 7 1 3', ascii=r"""
${c2} _____ ${c1}_____${c2}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aperio_gnu_linux = AsciiArt(match=r'''"Aperio GNU/Linux"*''', color='255', ascii=r"""
${c2}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
apricity = AsciiArt(match=r'''"Apricity"*''', color='4 7 1', ascii=r"""
${c2} ./o-

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arch = AsciiArt(match=r'''"Arch"*''', color='6 6 7 1', ascii=r"""
${c1} -`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arch_old = AsciiArt(match=r'''"arch_old"''', color='6 7 1', ascii=r"""
${c1} __

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arch_small = AsciiArt(match=r'''"arch_small"''', color='6 7 1', ascii=r"""
${c1} /\

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
archbox = AsciiArt(match=r'''"ArchBox"*''', color='2 7 1', ascii=r"""
${c1} ...:+oh/:::..

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
archcraft = AsciiArt(match=r'''"Archcraft"*''', color='6 1 2 3 4 5', ascii=r"""
${c1}${c1}${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
archlabs = AsciiArt(match=r'''"ARCHlabs"*''', color='6 6 7 1', ascii=r"""
${c1} 'c'

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
archmerge = AsciiArt(match=r'''"ArchMerge"*''', color='6 6 7 1', ascii=r"""
${c1} y:

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
archstrike = AsciiArt(match=r'''"ArchStrike"*''', color='8 6', ascii=r"""
${c1} *

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arcolinux = AsciiArt(match=r'''"ArcoLinux"*''', color='7 4', ascii=r"""
${c2} /-

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arcolinux_small = AsciiArt(match=r'''"arcolinux_small"*''', color='7 4', ascii=r"""
${c2} A

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
artix = AsciiArt(match=r'''"Artix"*''', color='6 6 7 1', ascii=r"""
${c1} '

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
artix_small = AsciiArt(match=r'''"artix_small"*''', color='6 6 7 1', ascii=r"""
${c1} '

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
arya = AsciiArt(match=r'''"Arya"*''', color='2 1', ascii=r"""
${c1} `oyyy/${c2}-yyyyyy+

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
asahi = AsciiArt(match=r'''"Asahi"*''', color='3 2 1 8 7 6 4', ascii=r"""
${c1} ## ${c2}**

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
aster = AsciiArt(match=r'''"Aster"*''', color='6 6', ascii=r"""
${c1} ...''...

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
asteroidos = AsciiArt(match=r'''"AsteroidOS"*''', color='160 208 202 214', ascii=r"""
${c1} ***

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
astos = AsciiArt(match=r'''"astOS"*''', color='8', ascii=r"""
${c1} oQA#$%UMn

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bedrock = AsciiArt(match=r'''"Bedrock"*''', color='8 7', ascii=r"""
${c1}--------------------------------------

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
biglinux = AsciiArt(match=r'''"BigLinux"*''', color='6 11 4', ascii=r"""
${c1} ...

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bitrig = AsciiArt(match=r'''"Bitrig"*''', color='2 7', ascii=r"""
${c1} `hMMMMN+

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
blackarch = AsciiArt(match=r'''"BlackArch"*''', color='1 1 0 1', ascii=r"""
${c3} 00

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
blackpanther = AsciiArt(match=r'''"blackPanther"* | 'blackpanther'*''', color='1 11 12', ascii=r"""
${c3} ........

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
blag = AsciiArt(match=r'''"BLAG"*''', color='5 7', ascii=r"""
${c1} d

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
blankon = AsciiArt(match=r'''"BlankOn"*''', color='1 7 3', ascii=r"""
${c2} `./ohdNMMMMNmho+.` ${c1} .+oo:`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bluelight = AsciiArt(match=r'''"BlueLight"*''', color='7 4', ascii=r"""
${c1} oMMNMMMMMMMMMMMMMMMMMMMMMM

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bodhi = AsciiArt(match=r'''"Bodhi"*''', color='7 11 2', ascii=r"""
${c1}| ${c2},,mmKKKKKKKKWm,,

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bonsai = AsciiArt(match=r'''"bonsai"*''', color='6 2 3', ascii=r"""
${c2} ,####,

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bsd = AsciiArt(match=r'''*"BSD"''', color='1 7 4 3 6', ascii=r"""
${c1} , ,

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
bunsenlabs = AsciiArt(match=r'''"BunsenLabs"*''', color='fg 7', ascii=r"""
${c1} `++

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cachyos = AsciiArt(match=r'''"CachyOS"*''', color='2 8 6', ascii=r"""
${c3} ${c2}.${c3}-------------------------:

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
calculate = AsciiArt(match=r'''"Calculate"*''', color='7 3', ascii=r"""
${c1} ......

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
calinixos = AsciiArt(match=r'''"CalinixOS"''', color='4 5 4 4 4 4', ascii=r"""
${c2}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
calinixos_small = AsciiArt(match=r'''"CalinixOS_small"*''', color='4 5 4 4 4 4', ascii=r"""
${c2}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
carbs = AsciiArt(match=r'''"Carbs"*''', color='4 5 4 4 4 4', ascii=r"""
${c2} ..........

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cbl_mariner = AsciiArt(match=r'''"CBL-Mariner"*''', color='6', ascii=r"""
${c1} .

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
celos = AsciiArt(match=r'''"CelOS"*''', color='4 6 0 5', ascii=r"""

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
center = AsciiArt(match=r'''"Center"*''', color='7 7', ascii=r"""
${c2} .

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
centos = AsciiArt(match=r'''"CentOS"*''', color='3 2 4 5 7', ascii=r"""
${c1} ..

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
centos_small = AsciiArt(match=r'''"centos_small"*''', color='3 2 4 5 7', ascii=r"""
${c2} ____${c1}^${c4}____

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
chakra = AsciiArt(match=r'''"Chakra"*''', color='4 5 7 6', ascii=r"""
${c1} _ _ _ "kkkkkkkk.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
chaletos = AsciiArt(match=r'''"ChaletOS"*''', color='4 7 1', ascii=r"""
${c1} `.//+osso+/:``

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
chapeau = AsciiArt(match=r'''"Chapeau"*''', color='2 7', ascii=r"""
${c1} .-/-.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
chonkysealos = AsciiArt(match=r'''"ChonkySealOS"*''', color='7', ascii=r"""
${c1} .-/-.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
chrom = AsciiArt(match=r'''"Chrom"*''', color='2 1 3 4 7', ascii=r"""
${c2} .,:loool:,.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cleanjaro = AsciiArt(match=r'''"Cleanjaro"*''', color='7 7', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cleanjaro_small = AsciiArt(match=r'''"cleanjaro_small"*''', color='7 7', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
clear_linux_os = AsciiArt(match=r'''"Clear Linux OS"* | "Clear_Linux"*''', color='4 3 7 6', ascii=r"""
${c1} BBB

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
clearos = AsciiArt(match=r'''"ClearOS"*''', color='2', ascii=r"""
${c1} `.--::::::--.`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
clover = AsciiArt(match=r'''"Clover"*''', color='2 6', ascii=r"""
${c1} `omo``omo`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cobalt = AsciiArt(match=r'''"Cobalt"*''', color='33 33 59 31 8', ascii=r"""
${c1} ///

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
condres = AsciiArt(match=r'''"Condres"*''', color='2 3 6', ascii=r"""
${c1}syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy+${c3}.+.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
container_linux_by_coreos = AsciiArt(match=r'''"Container Linux by CoreOS"* | "Container_Linux"*''', color='4 7 1', ascii=r"""
${c1} .....

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
crux = AsciiArt(match=r'''"CRUX"*''', color='4 5 7 6', ascii=r"""
${c1} odddd

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
crux_small = AsciiArt(match=r'''"crux_small" | KISS*''', color='4 5 7 6', ascii=r"""
${c1} ___

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
crystal_linux = AsciiArt(match=r'''*"Crystal Linux"*''', color='13 5', ascii=r"""
${c1} mysssym

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cucumber = AsciiArt(match=r'''*"Cucumber"*''', color='2 3', ascii=r"""
${c1} `.-://++++++//:-.`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cutefishos = AsciiArt(match=r'''"CutefishOS"*''', color='6 7 4', ascii=r"""
${c1} ___ww___

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
cyberos = AsciiArt(match=r'''"CyberOS"*''', color='50 32 57', ascii=r"""
${c3} !M$EEEEEEEEEEEP

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dahlia = AsciiArt(match=r'''"dahlia"*''', color='1 7 3', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
darkos = AsciiArt(match=r'''"DarkOs"''', color='1 6 5 3 2', ascii=r"""

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
darwin = AsciiArt(match=r'''"Darwin"''', color='2 3 1 1 5 4', ascii=r"""
${c1} c.'

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
debian = AsciiArt(match=r'''"Debian"*''', color='1 7 3', ascii=r"""
${c2} _,met$$$$$gg.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
debian_small = AsciiArt(match=r'''"debian_small"''', color='1 7 3', ascii=r"""
${c1} _____

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
deepin = AsciiArt(match=r'''"Deepin"*''', color='2 7', ascii=r"""
${c1} ............

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
desaos = AsciiArt(match=r'''"DesaOS"''', color='2 7', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
devuan = AsciiArt(match=r'''"Devuan"*''', color='5 7', ascii=r"""
${c1} ..,,;;;::;,..

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dietpi = AsciiArt(match=r'''"DietPi"*''', color='2 0', ascii=r"""
${c1} :=+******+- -+******+=:

View file

@ -1,9 +1,13 @@
# This file is automatically generated. Please do not modify.
from ..distro import AsciiArt
from __future__ import annotations
def detect(name: str) -> AsciiArt:
from . import AsciiArt
def detect(name: str) -> AsciiArt | None:
if not name:
return None
name = name.lower()
if name.startswith('aix'):
from .aix import aix

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dracos = AsciiArt(match=r'''"DracOS"*''', color='1 7 3', ascii=r"""
${c1} `-:/-

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dragonfly = AsciiArt(match=r'''"DragonFly"*''', color='1 7 3', ascii=r"""
${c2},--, ${c1}| ${c2},--,

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dragonfly_old = AsciiArt(match=r'''"dragonfly_old"*''', color='1 7 3', ascii=r"""
${c1} .-.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
dragonfly_small = AsciiArt(match=r'''"dragonfly_small"*''', color='1 7 3', ascii=r"""
${c2} ,${c1}_${c2},

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
drauger = AsciiArt(match=r'''"Drauger"*''', color='1 7', ascii=r"""
${c1} -``-

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
droidian = AsciiArt(match=r'''"Droidian"*''', color='2 10', ascii=r"""
${c2} _,met$$$$$gg.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
elementary = AsciiArt(match=r'''"Elementary"*''', color='4 7 1', ascii=r"""
${c2} eeeeeeeeeeeeeeeee

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
elementary_small = AsciiArt(match=r'''"elementary_small"*''', color='4 7 1', ascii=r"""
${c2} _______

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
elive = AsciiArt(match=r'''"Elive"*''', color='7 6 6', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
encryptos = AsciiArt(match=r'''"EncryptOS"*''', color='2 5 6', ascii=r"""
${c2} *******

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
endeavouros = AsciiArt(match=r'''"EndeavourOS"*''', color='1 5 4', ascii=r"""
${c1} ./${c2}o${c3}.

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
endless = AsciiArt(match=r'''"Endless"*''', color='1 7', ascii=r"""
${c1} `:+yhmNMMMMNmhy+:`

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
enso = AsciiArt(match=r'''"Enso"*''', color='8 7', ascii=r"""
${c1}

View file

@ -1,5 +1,5 @@
from ..distro import AsciiArt
from . import AsciiArt
eurolinux = AsciiArt(match=r'''"EuroLinux"*''', color='4 7', ascii=r"""
${c1} __

Some files were not shown because too many files have changed in this diff Show more