Skip to main content

A simple wrapper enabling quick SQLAlchemy Engine creation for various DBMS.

Project description

SQLEngine

SQLEngine is a basic wrapper around the SQLAlchemy library - specifically focused on simple Engine creation.

Usage

from sqlengine import build_engine

engine = build_engine(  # This gives you an SQLAlchemy Engine object with which you can .connect() 
    driver="mssql",
    host="127.0.0.1/DB_Server",
    database="DB_Name"
)

Connecting to a more obscure DBMS such as Microsoft's Access is also supported.:

from sqlengine import build_engine

# The driver, host, and database parameters are ignored when using Access. 
# The wrapper deals with obscure necessities such as DBMS-specific connection parameters.
engine = build_engine(  
    driver="access",
    local_db_filepath="C:\\Users\\User\\Desktop\\Database.accdb"
)

Whilst yet untested, connecting to pretty much any DBMS should be supported:

from sqlengine import build_engine

engine = build_engine(
    driver="mysql",
    host="https://www.mycompany.fake/DB_Server",
    database="DB_Name",
    username="my_username",  # Note the additional keyword arguments
    password="my_password"
)

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

sqlengine-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlengine-1.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file sqlengine-1.1.0.tar.gz.

File metadata

  • Download URL: sqlengine-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.4 CPython/3.12.0

File hashes

Hashes for sqlengine-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6c273d946a2e53c14a5e3d5688985848e87c878178323a56b2d9f95d1c8d9251
MD5 7c81d3a8b7cd900d143db217985ebe8b
BLAKE2b-256 ee9209d5a8e86dbfa1c3920c893e8af8d5cbc93395b037fcb49ee13b3bda6e61

See more details on using hashes here.

File details

Details for the file sqlengine-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sqlengine-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.4 CPython/3.12.0

File hashes

Hashes for sqlengine-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0637cb8861371db4e844ec0d06fa28f7e22b479eb61a4e8fab1de137e7ce807
MD5 9b1461986e12868146b8b13027603256
BLAKE2b-256 b96f2c8413563c5052ec312e68957010fbf54a8b01b7cd70718e489bf5cd48b6

See more details on using hashes here.

Supported by

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