Framework web Python
Project description
About Lila
Lila is a Python framework based on Starlette and Pydantic. Designed for developers seeking simplicity, flexibility, and robustness, it enables efficient and customizable Web or API application development. Its modular structure and support for advanced configurations make it suitable for both beginners and experienced developers.
Acerca de Lila (Español)
Lila es un framework de Python basado en Starlette y Pydantic. Diseñado para desarrolladores que buscan simplicidad, flexibilidad y robustez, permite crear aplicaciones Web o APIs de manera eficiente y personalizable. Su estructura modular y soporte para configuraciones avanzadas lo hacen ideal tanto para principiantes como para desarrolladores experimentados.
Learning Lila
Documentación de Lila
https://pypi.org/project/lila-framework/
Key Features
- Simplicity: Intuitive and minimalist design.
- Flexibility: Support for multiple databases (MySQL, SQLite) and adaptation to various environments.
- Speed: Built on Starlette, known for its high performance in asynchronous applications.
- Robust Validation: Uses Pydantic to ensure consistent data.
- Editable and Configurable: Ready to use but fully customizable.
- Multi-language Support: Integrated support for multilingual applications.
- Compatibility: Can be used with frameworks like Next.js, Remix, and others.
- Easy Migrations: Quick and straightforward database configuration.
- Jinja2 and HTML Sessions: Ready-to-use with dynamic templates and session handling, while remaining compatible with React, Angular, Vue, and other frontend frameworks.
- SQLAlchemy :For the ORM or you can also use the connectors directly (mysql.connector, sqlite3, etc...)
- JWT :It comes integrated with helpers to generate tokens and the middleware already has a function that validates it.
- Admin Panel: Includes a built-in admin panel for easy management of your application's data and settings.
- Robust Security: Features IP blocking, URL filtering, and request sanitization to prevent malicious attacks and suspicious requests.
- REST CRUD Generator: Generate REST APIs with just a few lines of code. Includes field validations and middleware support.
Características principales
- Simplicidad: Diseño intuitivo y minimalista.
- Flexibilidad: Soporte para múltiples bases de datos (MySQL, SQLite) y adaptación a diversos entornos.
- Rapidez: Basado en Starlette, conocido por su alto rendimiento en aplicaciones asíncronas.
- Validación robusta: Uso de Pydantic para garantizar datos consistentes.
- Editable y configurable: Todo está listo para usar, pero también es completamente personalizable.
- Multi-idioma: Soporte integrado para aplicaciones multilingües.
- Compatibilidad: Puede ser utilizado con frameworks como Next.js, Remix js, entre otros.
- Migraciones sencillas: Configuración rápida y fácil para bases de datos.
- Jinja2 y sesiones HTML: Listo para usar con plantillas dinámicas y manejo de sesiones, pero compatible con React, Angular, Vue, entre otros frameworks frontend.
- SQLAlchemy :Para la ORM o también se puede utilizar los connectores directamente(mysql.connector,sqlite3,etc...)
- JWT :Viene integrado con helpers para generar token y en el middleware ya viene una función que válida el mismo.
- Panel de Administración: Incluye un panel de administración integrado para gestionar fácilmente los datos y configuraciones de tu aplicación.
- Seguridad Robusta: Cuenta con bloqueo de IPs, filtrado de URLs y sanitización de solicitudes para prevenir ataques maliciosos y solicitudes sospechosas.
- Generador de APIs REST: Genera APIs REST con solo unas pocas líneas de código. Incluye validaciones de campos y soporte para middlewares.
Vite & Tailwind CSS v4 Unified Asset Pipeline
Lila features a complete frontend asset builder pipeline driven by Vite and Tailwind CSS v4 which organizes your source styles (resources/css/tailwind.css) and scripts (resources/js/utils.js and resources/js/spa.js) into a unified resources/ folder:
- Zero Configuration: Dynamically switches between Vite's hot-reload server in development (
DEBUG=True) and optimized, minified, hashed files resolved viamanifest.jsonin production (DEBUG=False). - Dynamic Dark/Light Modes: Built-in
@variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));configuration maps Lila's theme switcher with Tailwind'sdark:classes out-of-the-box.
Pipeline de Activos Unificado con Vite y Tailwind CSS v4
Lila cuenta con un pipeline de compilación de front-end impulsado por Vite y Tailwind CSS v4 que organiza tus estilos fuente (resources/css/tailwind.css) y scripts (resources/js/utils.js y resources/js/spa.js) en la carpeta unificada resources/:
- Configuración Cero: Alterna de forma dinámica entre el servidor hot-reload de Vite en desarrollo (
DEBUG=True) y archivos optimizados, minificados y con hash de caché a través demanifest.jsonen producción (DEBUG=False). - Temas Oscuro/Claro Dinámicos: Configurado nativamente a través de
@variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));para que todas las clasesdark:respondan de inmediato al selector de temas del framework sin configuraciones adicionales.
Installation (Instalación)
Installation
English
- Install Lila Framework using pip:
pip install lila-framework
- Initialize your Lila project:
lila-init
- Run application:
python app.py #Or python3 app.py
Español
- Instala Lila Framework usando pip:
pip install lila-framework
- Inicializa tu proyecto Lila:
lila-init
- Ejecutar aplicación:
python app.py #Or python3 app.py
Contributions (Contribuciones)
At this stage, all official modifications to the framework will be made only by the original author. However, any feedback or suggestions to improve the project are welcome.
Actualmente, todas las modificaciones oficiales al framework serán realizadas únicamente por el autor original. Sin embargo, se agradece cualquier comentario o sugerencia que pueda mejorar el proyecto.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lila_framework-1.1.4.tar.gz.
File metadata
- Download URL: lila_framework-1.1.4.tar.gz
- Upload date:
- Size: 913.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cb7b5b404c635bb05fd30b432d59739a50f704a61135d93da65ace2aed220dc
|
|
| MD5 |
d0a476ae78b8e0c7f8a9b5a623b2cd1a
|
|
| BLAKE2b-256 |
e660fc2d35215b4c28c6d7896ff7e1d557e6ea0525124256fe0699177f3e4033
|
File details
Details for the file lila_framework-1.1.4-py3-none-any.whl.
File metadata
- Download URL: lila_framework-1.1.4-py3-none-any.whl
- Upload date:
- Size: 942.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9871a75757a9bc957df5c021cf8facbdd2bfd4cc89956e2b241b2d80516a49
|
|
| MD5 |
f4a3e07948fd781b839837f0e11e8df7
|
|
| BLAKE2b-256 |
58b3ea88a240a61a731050597be78fa42b29861752ec75c529cc1d6ceceafbb2
|