Metadata-Version: 2.1
Name: amazedb
Version: 1.0.2
Summary: This is a light-weight, NoSQL, file-based database managemet system
Home-page: https://github.com/jalaj-k/amazedb
Author: Jalaj Kumar
Author-email: axiom.jalaj.28@gmail.com
License: MIT
Download-URL: https://github.com/jalaj-k/amazedb/archive/v1.0.2.tar.gz
Keywords: database,nosql,dbms
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: colorama
Requires-Dist: cryptography

# amazedb
 It is a file based NoSQL database management system written in python.

 All the databases are stored in the ```db``` sub-directory of the current directory. This behaviour can be manipulated as we'll see later on.

## Using the database

 The database can simply be used by cloning the project in a directory you may call ```amazedb``` and then create another directory named ```db``` in your projects root. Then import the main file as:

```python
from amazedb import dbms as db
```

This will create the namespace ```db``` in your file.

## Creating and accessing databases

 Now that you have imported the dbms, you can access a database with the following code:

```python
mydb = db.db('mydb')
```

This will try to locate the ```./db``` directory relative to the file you are working on. To locate a different directory, you can use:

```python
mydb = db.db('mydb', dbPath="D:/project")
```

In this case, it will look for ```D:/project/db``` directory. 

Now, what next? The project will see if the *mydb* databae exists in that directory. If it exists, well and good otherwise it will be created by default. To override this behaviour, simply use:

```python
mydb = db.db('mydb', safeMode=False)
```

In this case, an exception will be raised if the database is not found.

*This page is still incomplete. We're working on it*


