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

pip install gotoni

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.6.tar.gz (3.6 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.6-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gotoni-0.1.6.tar.gz
  • Upload date:
  • Size: 3.6 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.6.tar.gz
Algorithm Hash digest
SHA256 9e71c1f7f40ccbca6aade931076a4cac51b3f98399b572b6f1be50c5977527e0
MD5 d33e27182b8e8d30799248f3120eda21
BLAKE2b-256 4b7fa19b39c59057e320b72521d4c1deeba8927b2ad2d7d012cac09ab096f63f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gotoni-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3115457d38c8c0a0c42d6fb8d5f39aee34f5a78d937cc2c73d00edcd7653ad6c
MD5 fe322eb0a3cd237711295d410df5cf55
BLAKE2b-256 1312c16a24fdf68c374e27a27d5d91245e21e409b171efad5cb054cf57835840

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