An easy-to-use databasing library
Project description
Primitive-Database (primitveDB)
About PrimitiveDB
Primitive-Database is a lightweight databasing library written in Python3. It uses CSV(Comma Separated Values) file(s) to store data, making it easy to perform simple and minimalistic tasks with great and stable performance.
Using PrimitiveDB
Server
Creating a simple vertical database
from primitiveDB.server import Server
Server.init.db(<CSV FILE>)
Server.init.id(<SPEICAL ID FOR THE SERVER>)
Server.init.columns(["Name", #Title for column 1
"Age", #Title for column 2
"Address"]) #Title for column 3
Server.init.auth(<AUTHENTICATION KEY>)
# IP PORT
Server.init.uri("0.0.0.0" , 8080) #Server IP is `http://localhost:8080` or `http://127.0.0.1:8080`
Server.run()
Client
Connecting to the database
from primitiveDB.client import Client
DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)
Fetching data from the database
from primitiveDB.client import Client
DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)
DB_data = DB.fetch() #returns a pandas.datafraem
print(DB_data)
Inserting data into the database
from primitiveDB.client import Client
DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)
DB_data = DB.fetch()
DB_data["Name"] = ["Jack", # Adding `Jack` to first row into Names
"James"] # Adding `Jill` to second row into Names
DB_data["Age"] = [10, # Adding the age for `Jack`
07] # Adding the age for `James`
DB_data["Adress"] = ["123 NAME ST", # Adding the adress for `Jack`
"123 MAIN ST"] # Adding the adress for `James`
DB.insert(DB_data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
primitiveDB-0.0.2.tar.gz
(11.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file primitiveDB-0.0.2.tar.gz.
File metadata
- Download URL: primitiveDB-0.0.2.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5bd5fb0d2d89ca3be372a9a879bb54a282bdcb69ece004c8b38952bf9f43d33
|
|
| MD5 |
c217f3065d326206beb4645a96da72af
|
|
| BLAKE2b-256 |
d7d9935149dc64ea0fad538ab6d1866c0bbb509b7ac61ceea03a6f8ba9b4c1cc
|
File details
Details for the file primitiveDB-0.0.2-py3-none-any.whl.
File metadata
- Download URL: primitiveDB-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
213be870af45c796f84bfe642795f730047e442733d443de9acbd587bd363549
|
|
| MD5 |
49af7b806864e4c24775fb433ba0f613
|
|
| BLAKE2b-256 |
a80db60b543aeb2a81cedf86ee2e9744daa577bb722d14b45084fcf0b7fd711d
|