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.2.tar.gz (2.8 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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gotoni-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 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.2.tar.gz
Algorithm Hash digest
SHA256 403d8a0fe16a88f0db50d9c7645f80c2cf556ed3fd3e3e9dfa3927352a37fe75
MD5 0023494eee2907f720eb852a948e3e8a
BLAKE2b-256 2958c5315e0c7e642fcf6e4c68d66599dbfb2adf1215a3bde9d1f65e242d456f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gotoni-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f033c2d06d7b72e7989dabef8ee8fe94b9587a05c8f04538ca479cd4a2cd0ee
MD5 aa44c34020e371b3b40a07388ed0cf19
BLAKE2b-256 b2a99736d17d6574dd77a33e36a2d3bf3f589fed823db6130762f369e0540c83

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