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.38.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85272ddf3cafc2a0fbd7f17dd73e668e0cebf7bd7820761be4c71863146b707 |
|
MD5 | 8f337b493be12bdf73bdf2a9eddd8ec7 |
|
BLAKE2b-256 | eb1c6d10a71ed876a423e7472baaa9f347ec97c1c5fb95b0664ef2c5c20257ed |
Close
Hashes for sqlalchemy_connector-0.1.38-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f7e44cbec89e270011f797a75c75772eb353ec5b57ac9fe7ea76eb05a1698a4 |
|
MD5 | 9e294936d25744d954d773b95df8ed48 |
|
BLAKE2b-256 | 3e8ba47c23ccdecb262d81cec65d8cbbe4d56220e1540f312d4f3376d28c108c |