https://github.com/dmdhrumilmistry/pyserverlessdb
A serverless DB for python hobby project. This project is still in BETA. Contributions and ideas are welcome.
https://github.com/dmdhrumilmistry/pyserverlessdb
db dmdhrumilmistry python3 serverless serverlessdb
Last synced: about 1 year ago
JSON representation
A serverless DB for python hobby project. This project is still in BETA. Contributions and ideas are welcome.
- Host: GitHub
- URL: https://github.com/dmdhrumilmistry/pyserverlessdb
- Owner: dmdhrumilmistry
- License: mit
- Created: 2021-12-25T10:27:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T14:50:07.000Z (over 4 years ago)
- Last Synced: 2025-02-08T07:08:48.144Z (about 1 year ago)
- Topics: db, dmdhrumilmistry, python3, serverless, serverlessdb
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyServerlessDB
```
+==============================================+
| ╔═╗┬ ┬╔═╗┌─┐┬─┐┬ ┬┌─┐┬─┐┬ ┌─┐┌─┐┌─┐╔╦╗╔╗ |
| ╠═╝└┬┘╚═╗├┤ ├┬┘└┐┌┘├┤ ├┬┘│ ├┤ └─┐└─┐ ║║╠╩╗ |
| ╩ ┴ ╚═╝└─┘┴└─ └┘ └─┘┴└─┴─┘└─┘└─┘└─┘═╩╝╚═╝ |
+----------------------------------------------+
| A Serverless DB for hobby python projects |
+----------------------------------------------+
~ v0.0.1Beta Author: Dhrumil Mistry ~
+==============================================+
```
A Serverless DB for hobby python projects
# Installation
## Using pip+git (Faster)
- Install using
```bash
pip3 install git+https://github.com/dmdhrumilmistry/pyserverlessdb.git
```
## Using clone+pip (Safer)
- clone/download repo
```bash
git clone https://github.com/dmdhrumilmistry/pyserverlessdb.git
```
- change directory
```bash
cd pyserverlessdb
```
- run tests
```bash
python3 setup.py test
```
- if test is ok, then install
```bash
pip3 install -e .
```
# Usage
## Using interpreter/console
- Start console using
```
python3 -m pyserverlessdb
```
- Use `help` command for instructions
```
> help
```
| Command | description |
|:-------:|:------------|
|help|prints help menu|
|exit|close interpreter
|dbs|print all the created/connected dbs|
|createdb|creates/connects with the db|
|seldb|selects a db|
|showdb|show selected db|
|printdb|prints db content|
|tbls|show tables in selected db|
|createtbl|create a table in selected db|
|deltbl|delete a table from selected db|
|seltbl|select a table from selected db|
|showtbl|print selected table name from selected db|
|printtbl|print selected table data from selected db|
|addobj|add object to selected table in selected db|
|updateobj|update object from selected table in selected db|
|abbreviation|full form|
|:----------:|:--------|
|DB|Database|
|tbl|Table|
|sel|Select|
|del|Delete|
# Important Notes:
- Windows User need to use `pip` instead of `pip3` and `python` or `py` instead of `python3`
- PyServerlessDB is still under development and is currently in Beta version.
# Instructions for Contribution:
- Create a issue with your idea. I will assign it to you.
- Create Fork
- Edit source code & create tests
- make Pull Request
- I everything is fine, then it will be merged to main