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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dbunify-2.1.2.tar.gz.

File metadata

  • Download URL: dbunify-2.1.2.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for dbunify-2.1.2.tar.gz
Algorithm Hash digest
SHA256 a0a4c7ab866679e1608676940b4f007fbf94d76eea82c5e726673b7340b9391e
MD5 3652c3f10452814800ace07af502801f
BLAKE2b-256 565d3b51c85a2a1a661d510408d6029e446f049c388775264ab65793c8bff0bb

See more details on using hashes here.

File details

Details for the file DbUnify-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: DbUnify-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for DbUnify-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f96eb10fff76be956f65b6683d81df68330f03d155785f3ee36d5927beda0a5b
MD5 317647a3c85508125dc2d5345470cb30
BLAKE2b-256 d9c74802cb5cf8cc4b14a9e3c2fc4ca5139177be601842350af4a3b922bc95ec

See more details on using hashes here.

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