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.2.tar.gz (12.6 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.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: so_file_system-0.1.2.tar.gz
  • Upload date:
  • Size: 12.6 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.2.tar.gz
Algorithm Hash digest
SHA256 d6493f916bd7c6bda16ac4fb806f28998c4404ee9d0918b2ee550982bbe8c08d
MD5 214168ecd5a6227cfa838f088066fbf2
BLAKE2b-256 1bef5afbca73822c83c2d57d74c6f3f93a25af17ccfaa255c73145dd87a6ebf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: so_file_system-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9afe206de47f115814a71585be15362474515f194725c8ae5e4593fc8d3245d
MD5 ae7139dfdad7b145ecb43cbdb2c91bec
BLAKE2b-256 40f5b68b960057c0afde3acbb3f942f5078f823155bbe086d7211a328b6c3eb6

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