Download latest version
Version 1.0.0.0
View on GitHub
Read the documentation
A lightweight and open source Python microframework designed to simplify multi-database management through intuitive, object-oriented class structures.
Simple code exampleCopyright © 2022-today, Thibault BUSTOS (alias TheRake66).# Import Pody modules.
from
pody.configurationimport
Configuration
from
pody.connectionimport
Connection
# Import database table class.
from
db.userimport
User
# Database configuration.
config
=Configuration
('db'
,'root'
,''
,'localhost'
,3306
)# Connect to the database.
socket
=Connection
(config
)# Creating a user.
User
(None
,'Newell'
,'Gabe'
,'gaben@valvesoftware.com'
).create
()# Retrieving a user.
user
=User
(1
).read
()# Update a user.
user
.name ='Gates'
user
.update
()# Delete a user.
user
.delete
()# Disconnect from the database.
socket
.closeSocket
()