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.1.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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sqlengine-1.1.1.tar.gz
Algorithm Hash digest
SHA256 79573ab25e76fcbee100781b1676bb4ad85b8e2ea444951ff5ee82ede100ccfc
MD5 d01db97fc06c09200e8ad7756e87419e
BLAKE2b-256 d0102d3d123fe280e0ea586012473e8c68900129627ff3879d122a3a92af1adc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sqlengine-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e71541a8ab174bcf6d2c52a22c67c32b1a6a878bef56a2a44165e33398f1fb5
MD5 c23d6de1f1ff90c97d67e7ece16811f2
BLAKE2b-256 4817dd4ae184288e374a00022bc314d18a25538a4383c4245a87e8e79269d7f0

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