Skip to content
/ TextDB Public

A text-based simple db and dbms for small amount of data

License

Notifications You must be signed in to change notification settings

Moysec/TextDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextDB

A text-based simple db and dbms for small amount of data

Installation

Clone this repository to your project directory.

cd your/project/path
git clone https://github.com/Moysec/TextDB.git

Now 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 TextDB

Usage

import TextDB

dbdict = {"name": "Johnny B. Good",
          "email": "johnny@bgood.com",
          "tel": "+123456789"}
db = TextDB.DBMS("users", dbdict)
dbresult = db.add()
print dbresult

License

The MIT License (MIT) Copyright © 2016 Moysec LLC.

About

A text-based simple db and dbms for small amount of data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors