Python library to connect to SQLAlchemy with SSH Tunnel
Project description
py-sqlalchemy-ssh-connector
Python library to connect to SQLAlchemy with SSH Tunnel.
Where to get it
The source code is currently hosted on GitHub at: https://github.com/pualien/py-sqlalchemy-ssh-connector
Binary installers for the latest released version are available at the Python package index
pip install sqlalchemy-connector
Example 1
from alchemy_connector import SQLAlchemySession
session = SQLAlchemySession('db.example.com')
result = session.execute('''select * from ecommerce_transactions limit 1''')
session.stop()
# session.start()
Example 2
{adapter}://{username}:{password}@{host}:{port}/{database}
session = SQLAlchemySession(
host='db.example.com',
uri='mysql+pymysql://user:password@127.0.0.1:3306/db'
)
...
session.stop()
Example 3
session = SQLAlchemySession(
host='db.example.com',
user='myuser',
password='mypassword',
)
...
session.stop()
Example 4
session = SQLAlchemySession(
host='db.example.com',
port='21',
user='myuser',
key='/home/myplace/.ssh/id_rsa2',
to_port='37017',
to_host='0.0.0.0'
)
...
session.stop()
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
Close
Hashes for sqlalchemy-connector-0.1.38b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eab00fb637430db90a008343dba7829b2f6b5a24c4ebdb5aee36a7f21852521 |
|
MD5 | 083c9b3db38d0c34e0a2dc17b9f166ba |
|
BLAKE2b-256 | 45bf54ae90e9e137fc46632ed9fc91adbf0837826f6d5aafdbbfe2659c984085 |
Close
Hashes for sqlalchemy_connector-0.1.38b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05a582397ad1b123fb91f760092dacba5d5dcb254af59a3026694a286008a946 |
|
MD5 | 52d7b13fbd4e3f3d4b7714e4ae2db977 |
|
BLAKE2b-256 | 1e772606c9fcc5fd622b22309ae90361d958676743632bf06c8de6f7c2f02ecf |