Skip to main content

A helper package to easily add SSH support to Modal apps.

Project description

gotoni (Python Package)

A Python package providing utilities to easily inject an SSH daemon into Modal images and securely connect to running containers.

Installation

cd python
pip install -e .

Usage

import modal
import gotoni

# 1. Add SSH into your Modal Image
image = modal.Image.debian_slim().pip_install("fastapi")
image = gotoni.add_ssh(image, key_path="~/.ssh/id_rsa.pub")

app = modal.App("my-ssh-app", image=image)

# 2. Start the SSH daemon in a modal function
@app.function(timeout=3600)
def debug_session():
    # This will print the SSH command to your terminal and block for the duration of the timeout
    gotoni.start_ssh(port=2222, timeout=3600)

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

gotoni-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

gotoni-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file gotoni-0.1.0.tar.gz.

File metadata

  • Download URL: gotoni-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gotoni-0.1.0.tar.gz
Algorithm Hash digest
SHA256 678da1d93ac1019acc952c99c264ece2b83677f274496a1fbe3e92d285ab1b08
MD5 fe532ea3c4ca9e311f58ed2b93852a38
BLAKE2b-256 ef90e146e32f9d75fbea4cead4d63b6a60c0aedf65b99d3ebb241a9164d1d332

See more details on using hashes here.

File details

Details for the file gotoni-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gotoni-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gotoni-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4304d7495bf4f93aae8727c52b248d3910c21562531fe4ce785387044f723fb
MD5 ef634d4358356d01747919f5a733aecc
BLAKE2b-256 0a428e9f7427e47e5c29d95879e320bfe61294c8a542c0edd76cce1be32bcafc

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