Metadata-Version: 2.4
Name: lunita-mini
Version: 0.2.4
Summary: ¡Versión mini de Lunita!
Author-email: tuysh <angelmacloviomorales@gmail.com>
License: Copyright 2025 Tuysh
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project-URL: Homepage, https://github.com/Tuysh/lunita-mini/
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: groq>=1.0.0
Provides-Extra: test
Requires-Dist: pytest>=9.0.2; extra == "test"
Dynamic: license-file

# Lunita

Lunita es un SDK que te permite interactuar con una IA temática: una vidente torpe y distraída que siempre interpreta todo de forma optimista. Consulta tu suerte, tus miedos, tus dudas... y obtén respuestas creativas, humorísticas y sorprendentemente sabias.

## Installation

Usa el gestor de paquetes [pip](https://pip.pypa.io/en/stable/) para instalar lunita-mini.

```bash
pip install lunita-mini
```

## Requirements

- Python >= 3.10
- [Groq API token](https://console.groq.com/keys) (gratuito)

## Quick Start

```python
import os
from lunita import Sesion, ConfigurarEstrellas
from dotenv import load_dotenv

load_dotenv()
token = os.getenv("TOKEN")

# Configuración
config = ConfigurarEstrellas(token=token)

# Crear sesión
sesion = Sesion(configuracion=config)

# Consultar
respuesta = sesion.predecir("¿Qué dice mi suerte hoy?")
print(f"🔮 Lunita: {respuesta}")
```

## Configuration

```python
from lunita import ConfigurarEstrellas, Mensaje

# Configuración básica
config = ConfigurarEstrellas(
    token="tu-groq-api-token",  # Requerido
)

# Configuración completa
config = ConfigurarEstrellas(
    token="tu-groq-api-token",
    # Control total del modelo
    modelo="openai/gpt-oss-20b",  # Default: "openai/gpt-oss-120b"
    # Personalización del comportamiento
    instrucciones_adicionales="Habla siempre en rima",
    # Ajustes técnicos
    max_mensajes=20,            # Límite de memoria de conversación (default 15)
    temperatura=1.2,            # Creatividad: 0.0 a 2.0 (default 1.1)
    # Continuidad (Tipado opcional con Mensaje)
    historial=[{"role": "user", "content": "Hola"}]  # Cargar conversación previa
)
```

## Documentation

Para más detalles sobre Lunita, consulta:

- [GitHub Repository](https://github.com/Tuysh/lunita-mini)
- [Project Wiki](https://github.com/Tuysh/lunita-mini/wiki)
- [PyPI Package](https://pypi.org/project/lunita-mini/)

## Contributing

Pull requests son bienvenidos. Para cambios importantes, abre un issue primero para discutir qué te gustaría cambiar.

Asegúrate de actualizar los tests según sea necesario.

## License

[MIT](https://choosealicense.com/licenses/mit/)
