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.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9849b8d3b9d0d8d1cacedf8e5c2682e15556bb98ff1c7c797134d86b0c47afbe |
|
MD5 | faaaf83bfbfb081a31cd2f64986603ea |
|
BLAKE2b-256 | c4de64e000baca93e65c50a468cfcafba40917df5a65acd115aa7ed01c7ec8aa |
Close
Hashes for sqlalchemy_connector-0.1.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7576df9c81c80333a7084597d2ce9e39c188d2287beae0d30fb00c30da3a3d15 |
|
MD5 | 416b21d340682bfa05c5f1d2cfca485e |
|
BLAKE2b-256 | e25464a0a71eabc721359c789c49ded2e0b1858a1e8f564ea1994f929134f01e |