A simple json database
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 loldb.datatypes.arrays import Array
array = Array(int, length=None)
Maps
from loldb.datatypes.maps import Maps
maps = Maps((int, str))
Interfaces
from loldb.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('name'))
Numbers
from loldb.datatypes.number import Number
num = Number("777")
Strings
from loldb.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.1.tar.gz
(10.8 kB
view details)
File details
Details for the file loldb-0.0.1.tar.gz
.
File metadata
- Download URL: loldb-0.0.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d126b3bfa053844034fe7417270695e12a5619f8a582ba1ee28d71b869857b45 |
|
MD5 | d171017fcc8fdeee4f7932491cda7d29 |
|
BLAKE2b-256 | ed6f89927f12613d5c39123129fb67035fc7d304d04a03a3df2861f112364930 |