Torah_Codes / lib /spell.py
cryptocalypse's picture
clases refactor draft, I class
8b82e6e
raw
history blame
7.25 kB
angels_by_zodiac_station = {
"Aries": ["sha'aphon", "behemoth", "bekemesheb/bekemekesheb", "qotzien"],
"Tauro": ["dierenavor", "heniethebol", "siemegedel", "morepheker"],
"Geminis": ["sheneron", "phelehedien", "volereked", "akeneseb"],
"Cancer": ["Qedoqoredi", "Qoheleren", "Phereshetial", "Memenial"],
"Leo": ["Bephopher", "Lieshebeker", "Shehenen", "shehelekek"],
"Virgo": ["Siemosial", "Sebodeh", "Siegel", "Teremothiteh"],
"Libra": ["A'ariegol", "Mereton", "Qa'aberi", "Legoshmelek"],
"Escorpio": ["Therepiethz", "Phetza'an", "Shemophethen", "Thokesed"],
"Sagitario": ["Aketen", "Kephron", "Oliphiel", "Yosel"],
"Capricornio": ["Ameni", "Bieker", "Depheri", "Menenial"],
"Acuario": ["Meta'am", "Theberien", "Shethoqoeh", "Danial"],
"Piscis": ["Sha'aphenen", "Aniesien", "Sethered", "Qohemehogov"]
}
angels_by_month_station = {
"Nisan": ["Asegesenek", "Mesokenek", "Deriegemon", "Shethenovesenov"],
"Ayer": ["Phemetor", "Qotenebial", "Ma'agol", "Goberethial"],
"Sivan": ["Senediem", "Tzoveh", "Tziyer", "Qoseqomial"],
"Tamuz": ["Zemieda", "Phimheor", "A'aphierepheleh", "Ma'ava'aqobebov"],
"Ab": ["Kedoremot", "Hetheledemi", "Qonezerema'a", "Hehemekel"],
"Elul": ["Phelietepheter", "Thesedegeb", "Nephesa'ar", "Qomoval"],
"Thisri": ["Derek", "Mezeredeter", "Neqocheda", "Asepheres"],
"Marheshavan": ["Beqosh", "Pheladen", "Sherenar", "Kebod"],
"Kislev": ["Phelestos", "Kether", "Henek", "Phonetos Lobenos"],
"Tebeth": ["Naphenietz", "Sekeberiem", "Senekeros", "Bekerba'al"],
"Shevet": ["Pholekemon", "Qeronega", "Shelomieth", "Yavorer"],
"Adar": ["Koneled", "Ba'aren", "Sebiebekera'a", "Qoromeqore"]
}
angels_by_day_station = {
1: ["Phiegenochen", "Tenekien", "Kophethen", "Makeleched"],
2: ["Tga'sher", "Menechethor", "Qoleneheren", "Shegedon"],
3: ["Sheriyachetz", "Qohebereneden", "Pherezen", "Hegelomoth"],
4: ["Pheniov Lavor", "Miyeshor", "Degiem", "Betheroqa"],
5: ["Kedemenor", "Avoreberien", "Qovephethem", "Bariebererov"],
6: ["Qola'azeran", "Deremthok", "Akethenor", "Arieh"]
}
angels_by_moon_sign = {
"Leberenieth": ["shaitan", "therezien", "sheneremi", "Gabrial"],
"Seletheleb": ["Yieshieshieh", "Abererehon", "Sheheqonek", "Bal Menael"],
"Yieshegeron": ["Phelayiem", "Ketherenial", "Rebenial", ""],
"Sheherieph": ["Biyom", "Bieth", "Rothep", "Danial"]
}
moon_ministers_by_zodiac = {
"Aries": ["Zerem", "Behemi", "Pheloneh", "Qonosh"],
"Tauro": ["Deketon", "Mezekerien", "Thederenael", "Amiena"],
"Geminis": ["Shegeron", "Biehereron", "Yielebek", "Ashegerien"],
"Cancer": ["Mekerechiem", "Qoheder", "Keresivon", "Mehiemeten"],
"Leo": ["Letzoneber", "Shegeher", "A'avoqor", "Ayiethebien"],
"Virgo": ["A'anem Qenek", "Yiehedieh", "Kenedeni", "Shegeton"],
"Libra": ["Tzedequiel", "Sheqothiek", "Theshegekon", "Shecheqon"],
"Escorpio": ["Rehecho", "Menedeber", "Kotheben", "Bedod Besher"],
"Sagitario": ["Tzoqor", "Reberon", "Abenor", "Keniepena"],
"Capricornio": ["Meshegeriem", "Yieshieshieh", "Shebiebiek", "Shegerelovi"],
"Acuario": ["Maasheniem", "Aberedon", "Mesepher", "A'anethera"],
"Piscis": ["Sha'aphenen", "Aniesien", "Sethered", "Qohemehogov"]
}
angels_by_earth_station = {
1: ["Memegien", "Yibesheh", "Thebel", "Hezeh Dovem"],
2: ["Mechemed Lov", "Bel Ached", "Aseberon", "Qohelorek"],
3: ["Mazeniem", "Amoniem", "Amoniem", "Mepheni Shesher"],
4: ["Yihelederek", "Mephenial", "Mephenial", ""]
}
angels_by_malechim_station = {
1: ["Akeberon", "Amereneh", "Mazeniem", "Meneshor"],
2: ["Qoherok", "Aberiek", "Siegor", "Pheniemor"],
3: ["Aberieth", "Gezorophed", "Zerezor", "Themekor"],
4: ["Beriekoch", "Kephor", "Avor", ""]
}
class AngelSearch:
def __init__(self, angels_by_zodiac_station, angels_by_month_station, angels_by_day_station,
angels_by_moon_sign, moon_ministers_by_zodiac, angels_by_earth_station,
angels_by_malechim_station):
self.angels_by_zodiac_station = angels_by_zodiac_station
self.angels_by_month_station = angels_by_month_station
self.angels_by_day_station = angels_by_day_station
self.angels_by_moon_sign = angels_by_moon_sign
self.moon_ministers_by_zodiac = moon_ministers_by_zodiac
self.angels_by_earth_station = angels_by_earth_station
self.angels_by_malechim_station = angels_by_malechim_station
def search_patterns(self, pattern):
results = []
# Buscar en la tabla de nombres de 谩ngeles por estaci贸n zodiacal
for zodiac, angels in self.angels_by_zodiac_station.items():
for angel in angels:
if pattern in angel:
results.append((zodiac, angel))
# Buscar en la tabla de nombres de 谩ngeles por mes y estaci贸n
for month, angels in self.angels_by_month_station.items():
for angel in angels:
if pattern in angel:
results.append((month, angel))
# Buscar en la tabla de nombres de 谩ngeles por d铆a y estaci贸n
for day, angels in self.angels_by_day_station.items():
for angel in angels:
if pattern in angel:
results.append((day, angel))
# Buscar en la tabla de nombres de 谩ngeles por signo de luna
for sign, angels in self.angels_by_moon_sign.items():
for angel in angels:
if pattern in angel:
results.append((sign, angel))
# Buscar en la tabla de nombres de 谩ngeles que ministran la luna por signo zodiacal
for zodiac, angels in self.moon_ministers_by_zodiac.items():
for angel in angels:
if pattern in angel:
results.append((zodiac, angel))
# Buscar en la tabla de nombres de 谩ngeles por estaci贸n de la Tierra
for station, angels in self.angels_by_earth_station.items():
for angel in angels:
if pattern in angel:
results.append((station, angel))
# Buscar en la tabla de nombres de 谩ngeles por estaci贸n de los Malechims
for station, angels in self.angels_by_malechim_station.items():
for angel in angels:
if pattern in angel:
results.append((station, angel))
return results
if __name__ == "__main__":
# Tablas de nombres de 谩ngeles
# Crear una instancia de AngelSearch
angel_search = AngelSearch(angels_by_zodiac_station, angels_by_month_station, angels_by_day_station,
angels_by_moon_sign, moon_ministers_by_zodiac, angels_by_earth_station,
angels_by_malechim_station)
# Buscar 谩ngeles que contienen el patr贸n "Qo"
pattern = "Qo"
results = angel_search.search_patterns(pattern)
# Imprimir resultados de la b煤squeda
print(f"Resultados de la b煤squeda para el patr贸n '{pattern}':")
if results:
for result in results:
print(result)
else:
print("No se encontraron coincidencias para el patr贸n proporcionado.")