A text-based simple db and dbms for small amount of data
Clone this repository to your project directory.
cd your/project/path
git clone https://github.com/Moysec/TextDB.gitNow add below to your init.py file or your project's starting point.
from os import environ
from os.path import abspath
from os.path import dirname
from sys import path
environ['DBMSPATH'] = abspath(dirname(__file__))
path.append(environ.get('DBMSPATH'))
import TextDBimport TextDB
dbdict = {"name": "Johnny B. Good",
"email": "johnny@bgood.com",
"tel": "+123456789"}
db = TextDB.DBMS("users", dbdict)
dbresult = db.add()
print dbresultThe MIT License (MIT) Copyright © 2016 Moysec LLC.