mirror of
https://github.com/kennethreitz/empartations.git
synced 2026-06-05 23:00:19 +00:00
56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
from system_777.numbers import (
|
|
calculate_gematria,
|
|
find_words,
|
|
find_phrases,
|
|
GematriaSystem,
|
|
)
|
|
|
|
|
|
class MetaphysicalShowcase:
|
|
def __init__(self):
|
|
self.target_value = 777
|
|
self.system = GematriaSystem.ENGLISH
|
|
|
|
def demonstrate_gematria_calculation(self, name: str):
|
|
value = calculate_gematria(name, self.system)
|
|
print(
|
|
f"The Gematria value of '{name}' in {self.system.value} system is: {value}"
|
|
)
|
|
|
|
def demonstrate_matching_words(self):
|
|
words = find_words(self.target_value, system=self.system)
|
|
print(
|
|
f"Words with Gematria value {self.target_value} in {self.system.value} system: {words}"
|
|
)
|
|
|
|
def demonstrate_matching_phrases(self):
|
|
phrases = list(find_phrases(self.target_value, system=self.system))
|
|
print(
|
|
f"Phrases with Gematria value {self.target_value} in {self.system.value} system: {phrases}"
|
|
)
|
|
|
|
def set_target_value(self, value: int):
|
|
self.target_value = value
|
|
print(f"Target value set to: {self.target_value}")
|
|
|
|
def set_system(self, system: GematriaSystem):
|
|
self.system = system
|
|
print(f"Gematria system set to: {self.system.value}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
showcase = MetaphysicalShowcase()
|
|
|
|
# Demonstrate changing target value and system
|
|
showcase.set_target_value(636)
|
|
showcase.set_system(GematriaSystem.ENGLISH)
|
|
|
|
# Demonstrate Gematria calculation for a specific name
|
|
showcase.demonstrate_gematria_calculation("Metatron")
|
|
|
|
# Demonstrate finding matching words
|
|
showcase.demonstrate_matching_words()
|
|
|
|
# Demonstrate finding matching phrases
|
|
showcase.demonstrate_matching_phrases()
|