sshi-py (Python SDK & Agent Client)
Async Python 3 client and AI Agent SDK for sshx.io collaborative terminals.
Installation
pip install sshi-py
Or install from source:
git clone https://github.com/Fire162/sshi.git
cd sshi/python && pip install .
Python Async API (For AI Agents)
Connect to any live sshx terminal session using async context managers:
import asyncio
from sshi import SSHISession
async def main():
target = "https://sshx.io/s/hr2hQ8YKuf#lFRwv8c7cZhJRd"
async with SSHISession(target, name="ai-assistant") as session:
# Run command and get output
output = await session.run("uname -a && uptime")
print("Command output:\n", output)
# Inspect participants
for user in session.users:
print(f"User: {user.name} (can_write={user.can_write})")
# Broadcast a chat message to everyone in the room
await session.chat("Hello from Python AI agent!")
asyncio.run(main())
Python CLI Usage
# Run command remotely
sshi-py run "hr2hQ8YKuf#lFRwv8c7cZhJRd" "python3 -c 'print(1337 * 2)'"
# Inspect session in JSON
sshi-py info "hr2hQ8YKuf#lFRwv8c7cZhJRd" --json
# Broadcast chat message
sshi-py chat "hr2hQ8YKuf#lFRwv8c7cZhJRd" "Hello room!"
Metadata
Release files for sshi-py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sshi_py-0.2.0.tar.gz | 10.7 kB | Without provenance | Details for sshi_py-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sshi_py-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for sshi_py-0.2.0-py3-none-any.whl |
Total release size: 21.7 kB
Release files / sshi_py-0.2.0.tar.gz
| Download URL | sshi_py-0.2.0.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27d85e9b0ca4bbe9e8d72c7441beda7c40b57c73912812fde603d1490be32003
|
|
BLAKE2b-256 checksum How to use checksums |
1d66a2f3003e3aa3ec596a3ad71af9516ace111ba271ce3391b19eab38933e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / sshi_py-0.2.0-py3-none-any.whl
| Download URL | sshi_py-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c96275ba407f4f808b4e98fc0393d8860511525ff62f24e17a78201e912c256
|
|
BLAKE2b-256 checksum How to use checksums |
13995190dda49823e55858ff1e82d5010df855219bdf99d865abd9b7a5dca949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for sshi-py 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.