Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1008 Bytes

File metadata and controls

34 lines (23 loc) · 1008 Bytes

OD&H LocalStorage

A simple and powerful localStorage library for Python, enhanced and branded for OD&H.

Features

  • Thread safety
  • Data compression using gzip
  • Basic CRUD operations (Create, Read, Update, Delete)
  • Example usage with HTML/CSS and a Flask backend

Usage

  1. Backend (Python):

    • Install Flask: pip install flask
    • Run the Python backend: python app.py (assuming you save the Flask code as app.py)
  2. Frontend (HTML/JavaScript):

    • Ensure the example.html, function.js, and style.css files are in the same directory.
    • Open example.html in your browser.
  3. Use the buttons in the HTML to interact with the Python backend.

Files

  • 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.

License

MIT License