A simple json database and other utilities
Project description
LOL
Lol is a database library(An improved version of json-based-database)
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
Datatypes
See all the datatype methods here
Arrays
from lol.datatypes.arrays import Array
array = Array(int, length=None)
Maps
from lol.datatypes.maps import Maps
maps = Maps((int, str))
Interfaces
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'))
Numbers
from lol.datatypes.number import Number
num = Number("777")
Strings
from lol.datatypes.string import String
string = String(7777)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loldb-0.0.2.tar.gz
(11.0 kB
view hashes)