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.7.tar.gz
(3.6 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.7.tar.gz.
File metadata
- Download URL: gotoni-0.1.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7928fe1cf77794d9e42c8fe9207aedf3d1051213b8d6b43e997a6212eb8866cf
|
|
| MD5 |
9a24ac1a27545c91e2e014bed6f0b1c8
|
|
| BLAKE2b-256 |
5a4b1b7f1bfabf84603f6d2eef7342e768d37d4b7d3a79eb389c23d76f0d689c
|
File details
Details for the file gotoni-0.1.7-py3-none-any.whl.
File metadata
- Download URL: gotoni-0.1.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1910087b62638b0fdc0f40cb4072724bbb5efc0bff25ed093a256f6ced1f792c
|
|
| MD5 |
0973157b7a687fb62215e3b845e01226
|
|
| BLAKE2b-256 |
b9e375a954011fd31da5f37309a870aaa7915e95b209a540d203c2685aeae517
|