Skip to content

Commit f6edce7

Browse files
committed
added all files and package
0 parents  commit f6edce7

File tree

10 files changed

+1269
-0
lines changed

10 files changed

+1269
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
dist/
3+
pexicdb.egg-info/

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Pexicdb [![Downloads](https://pepy.tech/badge/pexicdb)](https://pepy.tech/project/pexicdb)
2+
3+
pexicdb is a simple model based file database, pexicdb is a lightweight and stores
4+
data in the folders and files, basically a folder is called container.
5+
6+
There are 2 types of files inside container
7+
8+
1. container file(models stored in this)
9+
2. data file(contains all data about the container)
10+
11+
pexicdb interact with the containers using model which is usually a list of fields.
12+
13+
## Install
14+
15+
```
16+
$ pip install pexicdb
17+
```
18+
19+
## Simple program
20+
21+
```python
22+
from pexicdb.fields import StringField, UUIDField
23+
from pexicdb import connect
24+
25+
user_model = {
26+
"id": UUIDField("id"),
27+
"name": StringField("name")
28+
}
29+
30+
users = connect("users", list(user_model.values()))
31+
32+
users.insert({
33+
"name" : "Harkishan Khuva"
34+
})
35+
```
36+
37+
**NOTE :** The first field of any Model must be either `UUIDField` or an `IntegerField`.

pexicdb/__about__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__name__ = "pexicdb"
2+
__version__ = "0.0.1"
3+
__author__ = "Harkishan Khuva"
4+
__author_email__ = "harkishankhuva02@gmail.com"
5+
__license__ = "MIT"

pexicdb/__init__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""
2+
# Pexicdb
3+
4+
Pexicdb is a simple model based file database, pexicdb is a lightweight and stores
5+
data in the folders and files, basically a folder is called container.
6+
7+
There are 2 types of files inside container
8+
9+
1. container file(models stored in this)
10+
2. data file(contains all data about the container)
11+
12+
Pexicdb interact with the containers using model which is usually a list of fields.
13+
```
14+
from pexicdb.fields import StringField, UUIDField
15+
from pexicdb import connect
16+
17+
user_model = {
18+
"id": UUIDField("id"),
19+
"name": StringField("name")
20+
}
21+
22+
users = connect("users", list(user_model).values())
23+
```
24+
25+
**NOTE :** The first field of any Model must be either `UUIDField` or an `IntegerField`.
26+
"""
27+
28+
from .__about__ import __name__, __version__, __author__, __author_email__, __license__
29+
from .functions import connect
30+
31+
__all__ = ["connect", ]

0 commit comments

Comments
 (0)