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.1.tar.gz
(2.7 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.1.tar.gz.
File metadata
- Download URL: gotoni-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
627b799157cd978c20ae2e32127ebe2d5b90f6c29fb7bc3a7b72a7e780a4c487
|
|
| MD5 |
5ecc48d1317fa02a17c0b8c72280d0af
|
|
| BLAKE2b-256 |
dc7c5d6c7d02079793d23014fd3841f231b7a25cd3c23d65294a6549317d3106
|
File details
Details for the file gotoni-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gotoni-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed9c6c418fcf6c7d7bb39cbffff2670f8292fd389317cfbb4c97aa0f752f37f
|
|
| MD5 |
e47f0c0e227deb0e30914db2787d5949
|
|
| BLAKE2b-256 |
79b449ca44fc52339249daca6c0c826d233a8a0470ebec3159007cb02fdd3dce
|