Skip to content

Commit 4062d05

Browse files
changing project name'
1 parent 29d9b33 commit 4062d05

File tree

10 files changed

+21
-5
lines changed

10 files changed

+21
-5
lines changed

CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ All notable changes to this project will be documented in this file. The format
77
- Initial release with basic database features++
88
- Initial documentation++
99
- Initial tests++
10-
-

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import datetime
22

3-
project = 'python-db'
3+
project = 'quickDB'
44
release = '0.0.1'
55
templates_path = ['_templates']
66
source_suffix = ".rst"

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
.. rst-class:: hide-header
33

4-
Welcome to python-db's documentation!
4+
Welcome to QuickDB's documentation!
55
=====================================
66

77
![Download badge](http://pepy.tech/badge/pickledb)

quickdb/__init__.py

Whitespace-only changes.

quickdb_/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from quickdb.main import QuickDB
2+
3+
__all__ = ['QuickDB']

quickdb_/cli.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from quickdb.main import QuickDB
2+
import argparse
3+

quickdb/main.py renamed to quickdb_/main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22
import json
3-
import re
43

54
from colorama import Fore, Style
65

6+
77
def print_it(color, text):
88
if color == "red":
99
print(Fore.RED + text + Style.RESET_ALL)
@@ -12,6 +12,7 @@ def print_it(color, text):
1212
elif color == 'blue':
1313
print(Fore.BLUE + text + Style.RESET_ALL)
1414

15+
1516
class QuickDB(object):
1617
""" python database.py """
1718
def __init__(self, db_path, overwrite_db=False):
File renamed without changes.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
long_description = fh.read()
55

66
setuptools.setup(
7-
name="python-db",
7+
name="quickDB",
88
version="0.0.1",
99
author="Deepak Raj",
1010
author_email="[email protected]",

test.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from quickdb.main import QuickDB
2+
3+
db = QuickDB("test_db.json", overwrite_db=True)
4+
db.set("name", "John")
5+
db.set("age", 25)
6+
db.set("age", 30, overwrite=True)
7+
print(db.get("name"))
8+
print(db.get("age"))
9+
10+
db.get_db()

0 commit comments

Comments
 (0)