A simple PostgreSQL management package for handling databases, tables, columns, and rows with ease.
Install the package using pip:
pip install postgresql_manager
from postgresql_manager import Manager, Databases, Tables, Columns, Rows
# Configure the database connection
success = Manager.config(
db_name="my_database",
user_name="test_user",
password="test_password",
host="127.0.0.1",
port="5432"
)
# Check if configuration was successful
if success:
print("Configuration set successfully.")
else:
print("Failed to set configuration.")