Skip to content

M4tth4ck333/blcrpython3

 
 

Repository files navigation

## blcrpython3 | Python 3 Checkpoint/Restore (CR) # Developed by m4tth4ck

blcrpython3 is a high-performance Python extension designed for Berkeley Lab Checkpoint/Restore (BLCR) integration. It enables the transparent freezing and resumption of CPython/IPython processes, specifically optimized for specialized environments including custom Kernels, distributed file systems like ExoFS, and low-level boot environments via iPXE. 🚀 Overview In high-uptime or computationally intensive environments (such as NLP Compiler Routine Canvases or Gaming Resource management), the ability to save the exact state of the interpreter is critical. This library provides the bridge between Python’s high-level memory management and the kernel’s state-capture mechanisms.

Key Features Zero-Loss Resumption: Capture the entire heap, stack, and register state of CPython.

ExoFS Optimized: Direct I/O support for writing checkpoint images to ExoFS for high-speed, distributed state persistence.

Hybrid State Support: Compatible with X++ (C++ in IPython) and GCC-plugin-driven Rust/SQL extensions within the same process.

iPXE Ready: Designed to be lightweight enough for deployment in minimal environments booted via iPXE. Component,Role Kernel,Interface with libcr for process image capture. ExoFS,Primary storage backend for .cr state files. Compiler Canvas,Save/Load complex NLP training or compilation routines mid-cycle. IPython/X++,Support for persistent interactive sessions involving C++ memory segments. ## INSTALLATLION

# Clone the repository git clone https://github.com/M4tth4ck333/blcrpython3.git cd blcrpython3/bpython

# Build the C-extension for Python 3 python3 setup.py build_ext --inplace

import bpython.cr as cr

# Initialize the CR context with an ExoFS mount point checkpoint_path = "/mnt/exofs/snapshots/session_01.cr"

print("Initializing complex routine...") # ... Your NLP or Rust-SQL logic here ...

# Trigger a manual checkpoint status = cr.checkpoint(checkpoint_path)

if status:
print(f"State successfully committed to {checkpoint_path}")

About

blcrpython3 - A fancy bandana curses and hoe's blazzing interface to the Python interactive interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%