Socket
Socket
Sign inDemoInstall

sqlalchemy-connector

Package Overview
Dependencies
7
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sqlalchemy-connector

Python library to connect to SQLAlchemy with SSH Tunnel


Maintainers
1

Readme

sqlalchemy-connector

py-sqlalchemy-ssh-connector

PyPI Latest Release PyPI Build PyPI - Downloads) PyPI - Python Version)

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()

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc