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.5.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gotoni-0.1.5.tar.gz.
File metadata
- Download URL: gotoni-0.1.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cd079b92e6fa83db4adb88ba4aadad8b3660a29d48b728e245d18918af0a136
|
|
| MD5 |
8930778a9d44560cd97e083270a089ef
|
|
| BLAKE2b-256 |
0caae3014bee2b9676045b4387ef00d0a67a272ed9622870aff4328ef4ac83d7
|
File details
Details for the file gotoni-0.1.5-py3-none-any.whl.
File metadata
- Download URL: gotoni-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ef0b0988ee30b75981798fc6686830312a54b40967a967055687c402df27dee
|
|
| MD5 |
e66ffc66ca9562a5ef42c35fbbcdba95
|
|
| BLAKE2b-256 |
b8b3cc8718c0d4a71671a01e33e461fe893f18298db1ff943acb49b8627839bc
|