Skip to main content

A simple json database and other utilities

Project description

LOL

Lol is a database library


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'))

# change the value
obj.set_item('name', 'new-name')

Numbers

from lol.datatypes.number import Number

num = Number("777")

Strings

from lol.datatypes.string import String

string = String(7777)

CLI

LOLdb also have an integrated cli

Project details


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.1.1.tar.gz (15.2 kB view details)

Uploaded Source

File details

Details for the file loldb-0.1.1.tar.gz.

File metadata

  • Download URL: loldb-0.1.1.tar.gz
  • Upload date:
  • Size: 15.2 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

Hashes for loldb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a935fc3fdc58f501354851d6cb656bd8d4bbeb065d44b43aa43281c94577d43
MD5 43b9868434639b51d911e450d4431861
BLAKE2b-256 16758ce569be4d63c2af3d45879a6c5b640481c8bbecf8f4f48842698dabdeed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page