binary-equalab 2.0.0__py3-none-any.whl → 2.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
binary_equalab/cli.py CHANGED
@@ -81,6 +81,12 @@ HELP_TEXT = """
81
81
  | `depreciar(costo, residual, años)` | `depreciar(10000, 1000, 5)` |
82
82
  | `interes_simple(capital, tasa, tiempo)` | `interes_simple(1000, 0.05, 3)` |
83
83
  | `interes_compuesto(capital, tasa, n, tiempo)` | `interes_compuesto(1000, 0.05, 12, 3)` |
84
+
85
+ ### Aliases y Accesos Directos
86
+ - **Shell**: Puedes ejecutar el programa como `binary-equalab`, `bneqls`, `beq` o `binary-math`.
87
+ - **Trigonometría**: `seno`=`sin`, `coseno`=`cos`, `tangente`=`tan`.
88
+ - **General**: `sonificar`=`sonify`, `derivada`=`derivar`.
89
+
84
90
  """
85
91
 
86
92
 
@@ -90,9 +96,24 @@ def get_prompt_style():
90
96
  })
91
97
 
92
98
 
99
+ def print_banner():
100
+ """Print the CLI banner using Rich panels."""
101
+ title = Text("Binary EquaLab CLI", style="bold white")
102
+ version = Text("Aurora v2.0.0", style="dim")
103
+ slogan = Text('"Las matemáticas también sienten,\npero estas no se equivocan."', style="dim italic")
104
+
105
+ content = Text.assemble(title, " ", version, "\n\n", slogan, justify="center")
106
+ panel = Panel(
107
+ content,
108
+ border_style="bold orange1",
109
+ expand=False,
110
+ subtitle="[dim]Escribe 'help' para ver comandos[/dim]"
111
+ )
112
+ console.print(panel)
113
+
93
114
  def repl():
94
115
  """Start the interactive REPL."""
95
- console.print(BANNER)
116
+ print_banner()
96
117
 
97
118
  engine = MathEngine()
98
119
 
@@ -113,24 +134,37 @@ def repl():
113
134
  continue
114
135
 
115
136
  # Handle special commands
116
- if user_input.lower() in ('exit', 'quit', 'q'):
137
+ cmd = user_input.lower()
138
+ if cmd in ('exit', 'quit', 'q'):
117
139
  console.print("[dim]¡Hasta luego![/dim]")
118
140
  break
119
141
 
120
- if user_input.lower() in ('cls', 'clear'):
142
+ if cmd in ('cls', 'clear'):
121
143
  console.clear()
122
- console.print(BANNER)
144
+ print_banner()
123
145
  continue
124
146
 
125
- if user_input.lower() == 'help':
147
+ if cmd == 'help':
126
148
  console.print(Markdown(HELP_TEXT))
127
149
  continue
128
150
 
129
- if user_input.lower() == 'history':
151
+ if cmd == 'history':
130
152
  for i, h in enumerate(engine.history[-10:], 1):
131
153
  console.print(f"[dim]{i}.[/dim] {h}")
132
154
  continue
133
155
 
156
+ # --- Easter Eggs ---
157
+ if cmd == 'binary':
158
+ console.print(Panel("[bold cyan]Las matemáticas también sienten.[/bold cyan]", border_style="cyan"))
159
+ continue
160
+ if cmd == 'aldra':
161
+ console.print(Panel("[bold magenta]De Aldra para la gente, gratis y con alma.[/bold magenta]", border_style="magenta"))
162
+ continue
163
+ if cmd == 'lupe':
164
+ console.print(Panel("[bold white]In Memoriam.[/bold white]", border_style="white"))
165
+ continue
166
+ # -------------------
167
+
134
168
  # Evaluate expression
135
169
  try:
136
170
  result = engine.evaluate(user_input)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: binary-equalab
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Advanced Algebra & Calculus CLI Tool
5
5
  Project-URL: Homepage, https://github.com/Malexnnn/BinaryEquaLab
6
6
  Project-URL: Repository, https://github.com/Malexnnn/BinaryEquaLab
@@ -52,14 +52,28 @@ pip install binary-equalab
52
52
 
53
53
  Or from source:
54
54
  ```bash
55
- cd binary-cli
56
- pip install -e .\n```\n\n### 📱 Termux (Android)\n\nLa instalación en Termux nativo requiere compilar algunas dependencias (NumPy/SymPy).\n\n```bash\n# 1. Instalar compiladores y librerías del sistema\npkg update\npkg install python clang make pkg-config libjpeg-turbo freetype libpng\n\n# 2. Instalar Binary EquaLab\npip install binary-equalab\n```
55
+ # En carpeta binary-cli
56
+ pip install -e .
57
+ bneqls
58
+ ```
59
+ (La opción `-e` hace que los cambios se reflejen al momento sin reinstalar).
60
+
61
+ ### 📱 Termux (Android)
62
+ La instalación en Termux nativo requiere compilar algunas dependencias (NumPy/SymPy).
63
+
64
+ ```bash
65
+ # 1. Instalar compiladores y librerías del sistema
66
+ pkg update
67
+ pkg install python clang make pkg-config libjpeg-turbo freetype libpng
68
+
69
+ # 2. Instalar Binary EquaLab
70
+ pip install binary-equalab
57
71
  ```
58
72
 
59
73
  ---
60
74
 
61
75
  ## 🐚 Universal Shell Setup
62
- Binary EquaLab incluye un configurador mágico para tu terminal. Instala temas, fuentes y plugins automáticamente.
76
+ Binary EquaLab incluye un configurador mágico para tu terminal. Instala temas (Oh My Posh/Zsh), fuentes y plugins automáticamente.
63
77
 
64
78
  ```bash
65
79
  # Ejecutar configurador
@@ -1,5 +1,5 @@
1
1
  binary_equalab/__init__.py,sha256=WFF_aioc3t6xkz0qU_RI4FeqY4UT92c8wE5cDDJWenY,675
2
- binary_equalab/cli.py,sha256=tZR7YSfyDKW73ToZoxMOXRdBUtLFuZypXVzck-ExlDg,7311
2
+ binary_equalab/cli.py,sha256=-L4obeppbbfi8ZuuXoGuF0HgFu0o8W-G0bQProNsNOY,8733
3
3
  binary_equalab/engine.py,sha256=WhkKpdDCg2zqH9cMXDPMQ7Ut7Awyn4WzkVrRVP7_dtE,15931
4
4
  binary_equalab/functions.py,sha256=F6GPCXoScCHVZ4CDEE2Rns5i3x89DAcKRVBte88j9oE,569
5
5
  binary_equalab/geometry.py,sha256=YPn59oQtTY_hb4LZyIEJUvN1pWJz_y5uk8gVBio1Gwo,2217
@@ -7,7 +7,7 @@ binary_equalab/giac_poc.py,sha256=_XdxE2lrvFH7M6qDfzSQHRdplxPzKhKfIWAcsOQq8Ho,22
7
7
  binary_equalab/parser_enhanced.py,sha256=P7oMnGHWn3xoqVChkPJ6B_i_IR9TeJMJXBjKoCO13ts,2735
8
8
  binary_equalab/shell_setup.py,sha256=9Ax_QcHEAopYIjShuBaHglg4HPysXJKbNL3D_FjexrU,4518
9
9
  binary_equalab/sonify.py,sha256=HfAYPtXLRyb3miLBsd8liqk4D5hvXVBHEEyV6fj9Za8,3274
10
- binary_equalab-2.0.0.dist-info/METADATA,sha256=W_GOi_ZYvDW61ALEOotKlxt23B-NyeO84Pq7mJlWdoM,4991
11
- binary_equalab-2.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
- binary_equalab-2.0.0.dist-info/entry_points.txt,sha256=2Io1Wi069dvgPHmGXmAT1a6rNA-DIq7tChai69jtbF0,119
13
- binary_equalab-2.0.0.dist-info/RECORD,,
10
+ binary_equalab-2.0.1.dist-info/METADATA,sha256=GcxDwiPnhKaKIY5B_SLUIZVQdbD0pdY81Q923WieATs,5084
11
+ binary_equalab-2.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
+ binary_equalab-2.0.1.dist-info/entry_points.txt,sha256=2Io1Wi069dvgPHmGXmAT1a6rNA-DIq7tChai69jtbF0,119
13
+ binary_equalab-2.0.1.dist-info/RECORD,,