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
- Prompt
- Input prompt
- Options(coming soon)
- Project generator
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
Project Generator
lol-create-project
Prompts and options
from lol.prompt import Prompt
data = Prompt("Name", type=str).prompt()
<<<<<<< HEAD
from lol.argparse import Parser
import sys
def get(data):
print(data)
def delete(data):
print(data)
p = Parser([
{
"value" : "install $package",
"types" : {
"package" : str
},
"func" : get
},
{
"value" : "delete $package",
"types" : {
"package" : str
},
"func" : delete
}
])
p.parse()
=======
ArgParser
Under development
21da2c171f7b29ae400e1cdf9ff786edb9279b8b
Metadata
Release files for loldb 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loldb-0.1.5.tar.gz | 18.9 kB | Without provenance | Details for loldb-0.1.5.tar.gz |
Release files / loldb-0.1.5.tar.gz
| Download URL | loldb-0.1.5.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
138623217df9ddcb6105c01ed5f328f76a1bf13b5c747734722f7f04a9da0539
|
|
BLAKE2b-256 checksum How to use checksums |
205d35479b26594ada8149820aafa4e6b6e89a1dc5f9841c0a467cbc6aa251d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for loldb 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.