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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82fc696865d00d9e837b998bfd8c56c55e6db1e0c98d7dd027dff61618adc405 |
|
MD5 | 618bdf725ab29fed462a27f340e947e8 |
|
BLAKE2b-256 | 2ad34e5861e3e7de1cda59a913584f959418a2d3b573ad2d8bb1ad22b569ae86 |
Close
Hashes for sqlalchemy_connector-0.1.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0b314c9b196e63d572899d9f647c38a712c0c66ada155c54f1011e20e139b7 |
|
MD5 | 5d27bbde249f326038156ae02afa748e |
|
BLAKE2b-256 | ea09b925847dd1cea9858ee2d66802d76ba911a22dbf39a58e45a8416cddccd3 |