Skip to main content

Un sistema de archivos versionado con Copy-on-Write en Python.

Project description

📂 cow_file_manager

Sistema de archivos versionado usando la técnica Copy-On-Write (COW) en Python. Permite crear, escribir, leer y administrar versiones de archivos de cualquier tipo.


📅 Instalación

  1. Clona o descarga el proyecto.
  2. Instala las dependencias:
pip install -r requirements.txt
  1. (Opcional) Instala el paquete localmente:
pip install .

📁 Uso básico

from src.cow_file_manager.cow_file_manager import GestorArchivos

# Inicializar el gestor
gestor = GestorArchivos("miarchivo.bin")

# Crear archivo
gestor.create()

# Escribir datos
gestor.write("Hola mundo versionado!")

# Leer la última versión
gestor.read()

# Listar todas las versiones
gestor.listar_versiones()

# Mostrar uso de memoria
gestor.mostrar_uso_memoria()

# Cerrar archivo
gestor.close()

📊 Características principales

  • ✅ Versionado automático de archivos.
  • ✅ Escritura en bloques comprimidos (zlib nivel 9).
  • ✅ Lectura segura de la última versión.
  • ✅ Limpieza de bloques huérfanos.
  • ✅ Optimizado para archivos de texto o binarios.

🔧 Comandos para desarrollo

  • Ejecutar todos los tests:
pytest
  • Correr ejemplo de uso:
python example.py

📈 Roadmap futuro (opcional)

  • ✨ Soporte para rollback de versiones.
  • ✨ Exportar versiones específicas.
  • ✨ Mejorar eficiencia de lectura masiva.

👤 Autor

  • Proyecto desarrollado por TuNombre.

📘 Licencia

MIT License. Libre de uso para proyectos personales o comerciales.


🔗 Contribuciones

¡Las contribuciones son bienvenidas! 🚀

1. Forkea el repositorio.
2. Crea una nueva rama (git checkout -b feature/nueva-feature).
3. Haz commit de tus cambios (git commit -m 'Agrega nueva feature').
4. Haz push a tu rama (git push origin feature/nueva-feature).
5. Abre un Pull Request.

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

so_file_system-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

so_file_system-0.1.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file so_file_system-0.1.1.tar.gz.

File metadata

  • Download URL: so_file_system-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for so_file_system-0.1.1.tar.gz
Algorithm Hash digest
SHA256 546cc84a482f404ada6444f52050c302cc9cd173863594aab8a820bc5cfb59d0
MD5 31bdb3ef4b0a8aad04406f1befcfdd9f
BLAKE2b-256 f9b651615aec20c17ecb81d0eeb3c50a5b759120111331471bc0511e7c8bc869

See more details on using hashes here.

File details

Details for the file so_file_system-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: so_file_system-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for so_file_system-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99c064da807422338ded2fe10595c74902f3ed08e8899fa5ead05cc060fef46a
MD5 65bc75451176c5ab17626baeef744d56
BLAKE2b-256 c3d1d0e24094b1125b44b404805abd529571581f5049ec5b505c789333a04cb5

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