Skip to main content

SQLite mejorado con cifrado SQLCipher, caché en Redis y API REST asincrónica con FastAPI

Project description

SQLitePlus Enhanced

SQLitePlus Enhanced es un backend modular en Python con FastAPI que combina:

  • 🔐 Autenticación JWT
  • 🔄 Operaciones asincrónicas sobre múltiples bases de datos SQLite
  • 🧠 Esquemas validados con Pydantic
  • 📦 CLI sincrónico con Click
  • 🔄 Soporte opcional para replicación, exportación y backups

🚀 Características principales

  • Gestión de múltiples bases SQLite de forma asincrónica (aiosqlite)
  • API REST completa para creación, inserción, consulta y eliminación de tablas
  • JWT con FastAPI + OAuth2 (/token)
  • CLI para ejecutar acciones sin servidor (sqliteplus init-db, etc.)
  • Capa de caché opcional con Redis (soporte en utils)
  • Cifrado compatible con SQLCipher (modo sincrónico en utils)

📦 Instalación

pip install -e .

O si quieres publicar:

pip install sqliteplus-enhanced

📡 Ejecutar el servidor

uvicorn sqliteplus.main:app --reload

Accede a:

Swagger UI: http://localhost:8000/docs

Redoc: http://localhost:8000/redoc

🧪 Ejecutar tests

pytest -v

🛠 Uso del CLI

sqliteplus init-db
sqliteplus execute "INSERT INTO logs (action) VALUES ('via CLI')"
sqliteplus export-csv logs logs.csv

🧰 Estructura del proyecto

sqliteplus/
├── main.py                # Punto de entrada FastAPI
├── api/                   # Endpoints REST
├── auth/                  # JWT y seguridad
├── core/                  # DB async + schemas
├── utils/                 # Módulos sync/CLI
└── tests/                 # Tests automatizados

📝 Licencia

MIT License © Adolfo González

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqliteplus_enhanced-1.0.5.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqliteplus_enhanced-1.0.5-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file sqliteplus_enhanced-1.0.5.tar.gz.

File metadata

  • Download URL: sqliteplus_enhanced-1.0.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for sqliteplus_enhanced-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b82e1a36fd09f0a13c2a8cc7023f082607053ddddf1ed5bd1b7e66fdf04f55a4
MD5 8f7747ad01b56f63059ecbcc40ed9bd4
BLAKE2b-256 510a163bae6971996fc98878794a71186546da6f01c7211effe3cab4b6092ad9

See more details on using hashes here.

File details

Details for the file sqliteplus_enhanced-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sqliteplus_enhanced-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c6897de10ee7dbc6feca16fa3bc4b89afd8c8c3b84e0c58ddc37f4cd6a84c742
MD5 30a3e8e9d8d89fc0e8e347f126415dfe
BLAKE2b-256 62733d908f8055fe5aef536f71f0d014ad544da075761c55b74c96f63ded7bab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page