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.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f818c497800269570248ce4dc22b58e94762e801e91b943d5730e781054f5b43 |
|
MD5 | bc2789b429af0a13fe36cda77588d72f |
|
BLAKE2b-256 | 58414e9142277d99fbf0a961e51354e6c869c57ee7fecf993b6c50cbef1b10eb |
Close
Hashes for sqlalchemy_connector-0.1.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f60625ed277420df8ab14b0cbfdaf7d79438c8c5ddbac40a43399bdd01a1388 |
|
MD5 | 3c172810bc3a3ccc0ea6818850312380 |
|
BLAKE2b-256 | 451dfb84af9fc90b3bb58e0c9b4e2da50b0b6c021dfe85dd755a4bd64d09e5fb |