Skip to main content

Precompiled Python wheel for the d2s docker2ssh binary

Project description

docker2ssh Python Package

docker2ssh is the primary CLI exposed by the Python package.

It does not reimplement the SSH server in Python. Instead, it:

  • discovers the bundled runtime executable
  • exposes a small Python API
  • provides a docker2ssh console script

Install

python3 -m pip install -U pip
python3 -m pip install -U docker2ssh

Published Linux wheels bundle the runtime directly. Set D2S_BIN only if you want to override the bundled executable:

export D2S_BIN=/usr/local/bin/d2s

Notes:

  • pip install -U docker2ssh also works as the update command
  • Upgrading pip first is recommended on older Linux systems
  • Published wheels currently target Linux x86_64 and aarch64

Python API

from docker2ssh import D2S

client = D2S(config="/etc/d2s/config.toml")
print(client.show())
client.config_set(2222, "my-container")

CLI Wrapper

docker2ssh show
docker2ssh config set 2222 my-container
docker2ssh serve
docker2ssh stop

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

docker2ssh-0.0.4-py3-none-manylinux_2_17_x86_64.whl (2.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

docker2ssh-0.0.4-py3-none-manylinux_2_17_aarch64.whl (2.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

File details

Details for the file docker2ssh-0.0.4-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for docker2ssh-0.0.4-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c9e4871e4d2b4d9f626d6ad41816f599d4b86809fe3df6395b6b81acda6d3fdb
MD5 61c1056d034ca9f9b650b01fc78d399f
BLAKE2b-256 7c25931c2d27b7084318cfbd253e3132d97b1bcc569027a592cc41d0564d4413

See more details on using hashes here.

Provenance

The following attestation bundles were made for docker2ssh-0.0.4-py3-none-manylinux_2_17_x86_64.whl:

Publisher: python-wheels.yml on PannenetsF/docker2ssh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docker2ssh-0.0.4-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for docker2ssh-0.0.4-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a35cf12867bbe6c1470d99b7afde8bfeb823377f7e257c9526ecf20113c6ece5
MD5 dd0a0c179b86a2f43b4d3781f01472a5
BLAKE2b-256 2d57b8fd3f57fdd989f1edcdbe63c6076152eb8c4aee488f2b2c908df5f3e605

See more details on using hashes here.

Provenance

The following attestation bundles were made for docker2ssh-0.0.4-py3-none-manylinux_2_17_aarch64.whl:

Publisher: python-wheels.yml on PannenetsF/docker2ssh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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