SQLite mejorado con cifrado SQLCipher y caché en Redis
Project description
📌 SQLitePlus - Base de Datos Mejorada con Cifrado y Caché 🚀
📖 Descripción
SQLitePlus es una implementación mejorada de SQLite con soporte para:
- Cifrado de base de datos con SQLCipher 🔒
- Caché en Redis para mejorar el rendimiento ⚡
- Manejo de concurrencia con threading 🛠️
- Exportación y replicación de datos 📂
- Interfaz CLI para administración desde la terminal 🖥️
- Servidor API con FastAPI para integración flexible 🌐
📦 Instalación
1️⃣ Clonar el Repositorio
git clone https://github.com/tuusuario/sqliteplus.git
cd sqliteplus
2️⃣ Crear un Entorno Virtual
python -m venv .venv
source .venv/bin/activate # En Linux/Mac
.venv\Scripts\activate # En Windows
3️⃣ Instalar Dependencias
pip install -r requirements.txt
🚀 Uso
🔹 Inicializar la Base de Datos
python -m sqliteplus.cli init-db
🔹 Ejecutar una Consulta de Escritura
python -m sqliteplus.cli execute "INSERT INTO logs (action) VALUES ('Test desde CLI')"
🔹 Ejecutar una Consulta de Lectura
python -m sqliteplus.cli fetch "SELECT * FROM logs"
🔹 Crear una Copia de Seguridad
python -m sqliteplus.cli backup
🔹 Exportar una Tabla a CSV
python -m sqliteplus.cli export-csv logs logs_export.csv
⚙️ Configuración de Redis (Opcional pero Recomendado)
Si deseas habilitar la caché en Redis:
- Iniciar Redis en Local
redis-server
- Verificar que Redis está activo
redis-cli ping # Debería responder con 'PONG'
📡 Uso del Servidor API
🔹 Iniciar el Servidor FastAPI
uvicorn sqliteplus.server:app --reload --host 0.0.0.0 --port 8000
🔹 Acceder a la Documentación Interactiva
Abre en tu navegador: http://127.0.0.1:8000/docs
📜 Licencia
Este proyecto está bajo la licencia MIT.
🤝 Contribuciones
¡Las contribuciones son bienvenidas! Si deseas mejorar SQLitePlus, haz un fork del repositorio y envía un pull request. 🚀
📧 Contacto
Si tienes dudas o sugerencias, puedes contactarme en tuemail@example.com o abrir un issue en GitHub.
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 sqliteplus_enhanced-1.0.0.tar.gz.
File metadata
- Download URL: sqliteplus_enhanced-1.0.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ee6950d54072517cd1af59a689db67e182a1d3ae07d3ce1c0d4ac787b6087e2
|
|
| MD5 |
274ec25ea257fb2126ea9fe7c7bd23f3
|
|
| BLAKE2b-256 |
682231c8a962fdd16c41541d66413ebe400d82e2bbcb484dbeedaca0f5ca50e5
|
File details
Details for the file sqliteplus_enhanced-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sqliteplus_enhanced-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e5ae8ef18771bfb776705d150fdbe45c4fa966475e86543cd3015c67773aaac
|
|
| MD5 |
6c45f492b22aa54a14259dc717856d78
|
|
| BLAKE2b-256 |
250e86b7470054d8c2d1a635c1c57e254d5b0877693c5fa6b49a58cb12e06e72
|