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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79573ab25e76fcbee100781b1676bb4ad85b8e2ea444951ff5ee82ede100ccfc
|
|
| MD5 |
d01db97fc06c09200e8ad7756e87419e
|
|
| BLAKE2b-256 |
d0102d3d123fe280e0ea586012473e8c68900129627ff3879d122a3a92af1adc
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e71541a8ab174bcf6d2c52a22c67c32b1a6a878bef56a2a44165e33398f1fb5
|
|
| MD5 |
c23d6de1f1ff90c97d67e7ece16811f2
|
|
| BLAKE2b-256 |
4817dd4ae184288e374a00022bc314d18a25538a4383c4245a87e8e79269d7f0
|