Skip to main content

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


Your Database Management DbUnify, made easy with DbUnify.

Project details


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)

Uploaded Source

Built Distribution

DbUnify-2.1.2-py3-none-any.whl (40.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page