Skip to main content

PsycoSSH

A ConnectionFactory for use by psycopg2 to enable SSH Tunneling

Probably should just use create_tunneled_engine which wraps around it

Example

from psycossh import create_tunneled_engine
from sqlalchemy import MetaData

engine = create_tunneled_engine(
    ssh_user="ssh_username",
    ssh_pkey=r"C:\Path\To\OpenSSH_Private_Key",  # without password
    ssh_host=r"ssh_server_host",
    ssh_port=22,  # default value  

    database=r"main_db",
    pg_host="localhost",  # default value
    pg_port=5432,  # default value
    pg_password="pg_password"
)
meta = MetaData()
meta.reflect(bind=engine)
print(meta.tables)

Metadata

Release files for psycossh 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psycossh 0.0.1
File Size Uploaded
psycossh-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for psycossh 0.0.1
File Interpreter ABI Platform
psycossh-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / psycossh-0.0.1.tar.gz

Download URL psycossh-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
670cdb61c063abfa67abeeee177acb5477bd3a6ab02781a1711baa0cb0cf5dc3
BLAKE2b-256 checksum
How to use checksums
5116dfff8f5daeec21b5e017a6e4f09f01b419a66cc416d8d1db5e867c56734a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Release files / psycossh-0.0.1-py3-none-any.whl

Download URL psycossh-0.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69bc89c82c1dadd30132662e9bb79ba44eb8168603d8dc2595bcc56ddf9bab43
BLAKE2b-256 checksum
How to use checksums
581a918064cb98ba7a9213507ccb22e8727ffee6261e8dbcf7c75d67a5f515a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page