DbUnify (Database Management) is a versatile Python library that simplifies database connectivity and management using SQLite.
Project description
DbUnify | Database Management
DbUnify (Database Management) is a versatile Python library that simplifies database connectivity and management using SQLite.
Installation
Install the DbUnify library from PyPI or GitHub.
pip install DbUnify
Connect To Database
from DbUnify.SQLite3.sync.ORM import Model, ORMManager
from DbUnify.SQLite3.data import Rules, DataType
# Define a model
class User(Model):
name = Field(data_type=DataType.TEXT)
email = Field(data_type=DataType.TEXT, constraints=[Rules.UNIQUE])
# Create an ORMManager instance and set it for the model
orm_manager = ORMManager(db_name='example.db')
User.set_manager(orm_manager)
# Create the table
User.create_table()
Documentation DbUnify:
For more information and advanced usage, refer to the DbUnify documentation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Developer
- Telegram: t.me/Sepehr0Day
Your Database Management DbUnify, made easy with DbUnify.
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
dbunify-2.1.2.tar.gz
(27.5 kB
view hashes)
Built Distribution
DbUnify-2.1.2-py3-none-any.whl
(40.3 kB
view hashes)