Metadata-Version: 2.1
Name: loldb
Version: 0.0.6
Summary: A simple json database and other utilities
Home-page: https://github.com/pranavbaburaj/lol
Author: P Pranav Baburaj
Author-email: code-roller@googlegroups.com
License: UNKNOWN
Description: # LOL
        Lol is a database library
        <hr>
        
        # Features
        - A set of data types
            - Numbers
            - Strings
            - Maps
            - Arrays
            - Interfaces
        - A json-based-database
            - Add
            - Delete
            - Update
            - Filter
        
        ## How to use it
        ### Database
        See the database documentation [here](https://github.com/pranavbaburaj/lol/blob/master/docs/database.md)
        
        <hr>
        
        ### Datatypes
        
        See all the datatype methods [here](https://github.com/pranavbaburaj/lol/blob/master/docs/types.md)
        #### Arrays
        ```python
        from lol.datatypes.arrays import Array
        
        array = Array(int, length=None)
        ```
        #### Maps
        ```python
        from lol.datatypes.maps import Maps
        
        maps = Maps((int, str))
        ```
        
        #### Interfaces
        ```python
        from lol.datatypes.interface import Interface
        
        data = Interface({
            name : [str, int],
            age : "?" # any,
        })
        
        # create an interface object
        obj = data.create("Pranav", 13)
        
        # gives you the name
        print(obj.get_item('name'))
        
        # change the value
        obj.set_item('name', 'new-name')
        ```
        
        #### Numbers
        ```python
        from lol.datatypes.number import Number
        
        num = Number("777")
        
        ```
        
        #### Strings
        ```python
        from lol.datatypes.string import String
        
        string = String(7777)
        ```
        
        ### CLI
        > ClI is under construction
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
