pydbfusion


Namepydbfusion JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryA lightweight Python library to connect seamlessly to SQLite, PostgreSQL, MySQL, and Azure SQL database.
upload_time2025-09-03 08:18:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords database connector sqlite postgresql mysql azure-sql
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dbconnect

A minimal universal database connection library for **SQLite, PostgreSQL, MySQL and Azure SQL database.**.  
One simple function to connect to multiple databases without worrying about different drivers.


Install the library

```bash
pip install pydbconnect
```

How to use this library and connect to different databases with examples:
1.Import the connect function.

from pydbconnect import connect



2.To Connect to SQLite:
conn = connect(
    "sqlite",
    database="my_database.db"  # optional, defaults to ":memory:"
)

3.Connect to PostgreSQL

Option A: Using individual parameters

conn = connect(
    "postgres",
    host="localhost",
    user="postgres",
    password="mypassword",
    database="testdb",
    port=5432  # optional, default is 5432
)

Option B: Using a URL

conn = connect(
    "postgres",
    url="postgresql://username:password@host:port/database"
)

Connect to MySQL
conn = connect(
    "mysql",
    host="localhost",
    user="root",
    password="mypassword",
    database="testdb",
    port=3306  # optional, default is 3306
)

4.Connect to Azure SQL database.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pydbfusion",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "database, connector, sqlite, postgresql, mysql, azure-sql",
    "author": null,
    "author_email": "Tejashree Thete <thetetejashree@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/c9/6d/060c21c183069ce26403d82a263ae15269c2a178131c11d178a7e9051900/pydbfusion-0.1.0.tar.gz",
    "platform": null,
    "description": "# dbconnect\r\n\r\nA minimal universal database connection library for **SQLite, PostgreSQL, MySQL and Azure SQL database.**.  \r\nOne simple function to connect to multiple databases without worrying about different drivers.\r\n\r\n\r\nInstall the library\r\n\r\n```bash\r\npip install pydbconnect\r\n```\r\n\r\nHow to use this library and connect to different databases with examples:\r\n1.Import the connect function.\r\n\r\nfrom pydbconnect import connect\r\n\r\n\r\n\r\n2.To Connect to SQLite:\r\nconn = connect(\r\n    \"sqlite\",\r\n    database=\"my_database.db\"  # optional, defaults to \":memory:\"\r\n)\r\n\r\n3.Connect to PostgreSQL\r\n\r\nOption A: Using individual parameters\r\n\r\nconn = connect(\r\n    \"postgres\",\r\n    host=\"localhost\",\r\n    user=\"postgres\",\r\n    password=\"mypassword\",\r\n    database=\"testdb\",\r\n    port=5432  # optional, default is 5432\r\n)\r\n\r\nOption B: Using a URL\r\n\r\nconn = connect(\r\n    \"postgres\",\r\n    url=\"postgresql://username:password@host:port/database\"\r\n)\r\n\r\nConnect to MySQL\r\nconn = connect(\r\n    \"mysql\",\r\n    host=\"localhost\",\r\n    user=\"root\",\r\n    password=\"mypassword\",\r\n    database=\"testdb\",\r\n    port=3306  # optional, default is 3306\r\n)\r\n\r\n4.Connect to Azure SQL database.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A lightweight Python library to connect seamlessly to SQLite, PostgreSQL, MySQL, and Azure SQL database.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "database",
        " connector",
        " sqlite",
        " postgresql",
        " mysql",
        " azure-sql"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "84aab12e206ae4a793a566b9f4e95b12d660cb01ec5c96d873dd77f2c935a589",
                "md5": "2d3529da84baa48b88c08983e28d9a8f",
                "sha256": "d1b727dec4ae84dfc109d4c2735b13194369f0dc81a5cbcd96b47b8bbf0c27cc"
            },
            "downloads": -1,
            "filename": "pydbfusion-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d3529da84baa48b88c08983e28d9a8f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2472,
            "upload_time": "2025-09-03T08:18:18",
            "upload_time_iso_8601": "2025-09-03T08:18:18.146938Z",
            "url": "https://files.pythonhosted.org/packages/84/aa/b12e206ae4a793a566b9f4e95b12d660cb01ec5c96d873dd77f2c935a589/pydbfusion-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c96d060c21c183069ce26403d82a263ae15269c2a178131c11d178a7e9051900",
                "md5": "48ad294cedefa0cd97f5e66931c88c2f",
                "sha256": "851f626170fbefc0604837a68786f6c7da79600e24acace111478705fcdd248a"
            },
            "downloads": -1,
            "filename": "pydbfusion-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "48ad294cedefa0cd97f5e66931c88c2f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2416,
            "upload_time": "2025-09-03T08:18:19",
            "upload_time_iso_8601": "2025-09-03T08:18:19.523988Z",
            "url": "https://files.pythonhosted.org/packages/c9/6d/060c21c183069ce26403d82a263ae15269c2a178131c11d178a7e9051900/pydbfusion-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-03 08:18:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pydbfusion"
}
        
Elapsed time: 1.60873s