Metadata-Version: 1.1
Name: LightDB
Version: 1.3.1
Summary: Light JSON Database
Home-page: https://github.com/Fl1yd/LightDB
Author: Fl1yd
Author-email: projects@fl1yd.su
License: MIT
Download-URL: https://github.com/Fl1yd/LightDB/releases
Description: LightDB
        =======
        
        
        What is this?
        -------------
        
        LightDB is a lightweight JSON Database for Python
        that allows you to quickly and easily write data to a file
        
        
        Installing
        ----------
        
        .. code-block:: sh
        
          pip3 install lightdb
        
        
        How to use
        ----------
        
        .. code-block:: python
        
          from lightdb import LightDB
        
          db = LightDB("/path/to/file.json") # or a non-existent file, it will be created automatically
        
          # SET method:
        
          data = {
              "key1": "value1",
              "key2": [
                  "value2",
                  "value3",
                  ...
              ],
              ...
          }
          db.set("key3", data)
          data = ["value4", "value5"]
          db.set("key4", data)
        
        
          # or GET:
        
          print(db.get("key3"))
          # {"key1": "value1", "key2": ["value2", "value3"]}
          print(db.get("key4"))
          # ["value4", "value5"]
Platform: UNKNOWN
