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.
Metadata
Release files for DbUnify 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbunify-2.1.2.tar.gz | 27.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DbUnify-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.8 kB
Release files / dbunify-2.1.2.tar.gz
| Download URL | dbunify-2.1.2.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0a4c7ab866679e1608676940b4f007fbf94d76eea82c5e726673b7340b9391e
|
|
BLAKE2b-256 checksum How to use checksums |
565d3b51c85a2a1a661d510408d6029e446f049c388775264ab65793c8bff0bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / DbUnify-2.1.2-py3-none-any.whl
| Download URL | DbUnify-2.1.2-py3-none-any.whl |
|---|---|
| Size | 40.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f96eb10fff76be956f65b6683d81df68330f03d155785f3ee36d5927beda0a5b
|
|
BLAKE2b-256 checksum How to use checksums |
d9c74802cb5cf8cc4b14a9e3c2fc4ca5139177be601842350af4a3b922bc95ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|