Auralis SDK
Cliente oficial Python para la API de Auralis Futures.
Instalación
pip install auralis
O desde el código fuente:
git clone https://github.com/auralis/auralis-sdk
cd auralis-sdk
pip install .
Uso básico
from auralis import Auralis
client = Auralis(api_key="af_TU_LLAVE")
# Chat simple
respuesta = client.chat("¿Qué es la inteligencia artificial?")
print(respuesta)
# Con parámetros
respuesta = client.chat(
"Explica la fotosíntesis",
system = "Eres un profesor de biología.",
temperature = 0.7,
max_tokens = 200,
)
print(respuesta)
Conversación multi-turno
mensajes = [
{"role": "system", "content": "Eres un asistente técnico."},
{"role": "user", "content": "¿Qué es un Transformer?"},
{"role": "assistant", "content": "Es una arquitectura de red neuronal..."},
{"role": "user", "content": "¿Y cómo funciona la atención?"},
]
respuesta = client.chat_mensajes(mensajes)
print(respuesta)
Estado de tu cuenta
info = client.estado()
print(info["plan"]) # "lite" o "pro"
print(info["peticiones_restantes"]) # cuántas te quedan
Entrenamiento custom (solo plan pro)
corpus = open("mi_corpus.txt").read()
resultado = client.entrenar(corpus, n_pasos=2000)
print(resultado["status"]) # "entrenamiento_iniciado"
Admin: crear clientes (solo plan pro)
nueva = client.registrar_cliente("Key de Juan", "Juan Pérez", plan="lite")
print(nueva["llave"]) # af_... → guardarla, no se puede recuperar
print(nueva["preview"]) # af_XXX••••XXXX
Manejo de errores
from auralis import Auralis, AuthError, LimitError, ServerError
client = Auralis(api_key="af_...")
try:
resp = client.chat("Hola")
except AuthError:
print("Llave inválida o sin permisos.")
except LimitError:
print("Límite del plan agotado.")
except ServerError:
print("Error en el servidor.")
Referencia rápida
| Método | Descripción | Plan |
|---|---|---|
chat(mensaje) |
Chat simple, devuelve string | Lite / Pro |
chat_mensajes(messages) |
Chat multi-turno | Lite / Pro |
chat_raw(messages) |
JSON completo del servidor | Lite / Pro |
estado() |
Consumo y estado de la cuenta | Lite / Pro |
health() |
Estado del servidor | Sin auth |
entrenar(corpus) |
Entrenamiento custom | Pro |
listar_clientes() |
Lista todos los clientes | Pro |
registrar_cliente(...) |
Crea nueva API key | Pro |
Metadata
Release files for auralis-af 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auralis_af-1.0.1.tar.gz | 2.6 kB | Without provenance | Details for auralis_af-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auralis_af-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for auralis_af-1.0.1-py3-none-any.whl |
Total release size: 4.9 kB
Release files / auralis_af-1.0.1.tar.gz
| Download URL | auralis_af-1.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74f6c5fb91f55d1c3401bac9fa83e0fb8f3c281ebf4a27b8e6cd0a5246d57453
|
|
BLAKE2b-256 checksum How to use checksums |
c08b6120d07c3d18ff50c1be25480ac35ae4b24e4282a28712525838dafc4f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / auralis_af-1.0.1-py3-none-any.whl
| Download URL | auralis_af-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9236697a9a7b7ac431b587d97c2cc24cb676f9607e52a102f22d65cef02927cf
|
|
BLAKE2b-256 checksum How to use checksums |
3eb9d38e892dcc0180cec88a5f4dcc362a940f406773a8305cde77d370051251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for auralis-af 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.