Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

islekcaganmert/baseofdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha Preview 0.0.3

baseofdata

Lightweight database system

Upstream Version, Do Not Use in Production

Installing from Release

$ wget https://github.com/islekcaganmert/baseofdata/releases/download/v0.0.3/baseofdata-0.0.3-py3-none-any.whl
$ python3 -m pip install ./baseofdata-0.0.3-py3-none-any.whl

Building

$ git clone https://github.com/islekcaganmert/baseofdata
$ cd baseofdata
$ make build
$ make install

Simple Example

from baseofdata import Data

db = Data('demo.Data')

db.create({
    'id': 'Integer',
    'name': 'String',
    'GPA': 'Float',
    'Available': 'Boolean'
})

db.add(id=1, name='Cagan Mert ISLEK', GPA=4.0, Available=True)
db.add(id=2, name='Cagan Mert ISLEK', GPA=4.0, Available=True)

db.remove(0)

db.edit(__id__=0, id=1, Available=False)

print(db.get(name='Cagan Mert ISLEK', GPA=4.0, Available=True))

Links

About

Lightweight database system

Topics

Resources

License

Stars

Watchers

Forks

Contributors