Pexicdb is a simple model based file database
Project description
Pexicdb
pexicdb is a simple model based file database, pexicdb is a lightweight and stores data in the folders and files, basically a folder is called container.
There are 2 types of files inside container
- container file(models stored in this)
- data file(contains all data about the container)
pexicdb interact with the containers using model which is usually a list of fields.
Install
$ pip install pexicdb
Simple program
from pexicdb.fields import StringField, UUIDField
from pexicdb import connect
user_model = {
"id": UUIDField("id"),
"name": StringField("name")
}
users = connect("users", list(user_model.values()))
users.insert({
"name" : "Harkishan Khuva"
})
NOTE : The first field of any Model must be either UUIDField
or an IntegerField
.
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
pexicdb-0.0.1.tar.gz
(11.0 kB
view hashes)
Built Distribution
pexicdb-0.0.1-py3-none-any.whl
(12.4 kB
view hashes)