Skip to main content

SSH tunnel transport for forwarding Swarmauri traffic through bastions.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri-transport-sshtunnel


Swarmauri Transport – SSH Tunnel

swarmauri-transport-sshtunnel wraps ssh -W to forward TCP streams through bastion hosts while keeping the Swarmauri transport API.

Installation

Using uv

uv pip install swarmauri-transport-sshtunnel --index-url https://pypi.org/simple

Using pip

pip install swarmauri-transport-sshtunnel

Usage

import asyncio
from swarmauri_transport_sshtunnel import SSHTunnelTransport

async def tunnel() -> None:
    transport = SSHTunnelTransport("bastion", "intranet.local", 5432)
    async with transport.client():
        await transport.send("db", b"hello")
        reply = await transport.recv()
        print(reply)

asyncio.run(tunnel())

Ensure SSH credentials, host keys, and jump host policies are configured on the machine executing the transport.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_transport_sshtunnel-0.1.1.dev18.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_transport_sshtunnel-0.1.1.dev18.tar.gz.

File metadata

  • Download URL: swarmauri_transport_sshtunnel-0.1.1.dev18.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_transport_sshtunnel-0.1.1.dev18.tar.gz
Algorithm Hash digest
SHA256 32992da6caf089e73820482f0a3cf7374c3b291b6f8f92edd3b9cfa1bb803611
MD5 d56b48c1d88b96d9077cb128a6c17c7d
BLAKE2b-256 d07415e8839ae3d8c45be1a6f6953e5e66adb36b22129cfc7a67ed9a3e2f470e

See more details on using hashes here.

File details

Details for the file swarmauri_transport_sshtunnel-0.1.1.dev18-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_sshtunnel-0.1.1.dev18-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_transport_sshtunnel-0.1.1.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 9027df52043c58b701a9162a20217e988c65f4fa6d8fbd81b6850f3a7439e01d
MD5 f20c0356bfdc2035564533e143a3a4df
BLAKE2b-256 2dbf81a4d44391de6f41c2502c436b760f3efc37bf98ab5ca52728df7ad5bac0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page