A simple and powerful localStorage library for Python, enhanced and branded for OD&H.
- Thread safety
- Data compression using gzip
- Basic CRUD operations (Create, Read, Update, Delete)
- Example usage with HTML/CSS and a Flask backend
-
Backend (Python):
- Install Flask:
pip install flask - Run the Python backend:
python app.py(assuming you save the Flask code asapp.py)
- Install Flask:
-
Frontend (HTML/JavaScript):
- Ensure the
example.html,function.js, andstyle.cssfiles are in the same directory. - Open
example.htmlin your browser.
- Ensure the
-
Use the buttons in the HTML to interact with the Python backend.
odh_local_storage.py: Main Python library file.app.py: Flask backend to handle requests from the frontend.example.html: Example HTML file to demonstrate usage.function.js: JavaScript file for frontend interactions.style.css: Basic CSS for styling.
MIT License