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.37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4def22f7c338cc780943cd07cdde080679320d6b8bbc0c9771b3abca60d011bf |
|
MD5 | e3315273c841f610b3a68a7102c8b07f |
|
BLAKE2b-256 | b564e402eb97f8f2259d2a368c1e2ae5ca8763791e203b9d4a708eb097d810c0 |
Close
Hashes for sqlalchemy_connector-0.1.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 228de41e1b3300fa3f98f38a73a81c7078b3e14f10521ba33929ac76a964e4ac |
|
MD5 | 4d3d287940a49fec980d049f41286136 |
|
BLAKE2b-256 | ca47a7795e9fc8e590dda9c821bd19585d773bd406dc353a2f72b8b8e027df92 |