SSH-based communication layer for distributed agents
Project description
AgentLink
AgentLink is a lightweight Python library that enables secure SSH communication between Linux/Window IP adresses.
Installation
pip install agentlink
Basic Usage
from agentlink import AgentLink
link = AgentLink()
link.register(
"agent1",
hostname="192.168.1.101",
username="user",
key_filename="~/.ssh/id_rsa"
)
# Run remote command
output = link.send_command("agent1", "hostname")
print(output)
# Upload a file
link.upload_file("agent1", "local.txt", "/tmp/remote.txt")
# Close all sessions
link.close_all()
Features
- Registration of multiple SSH targets (agents)
- Send remote commands
- Upload and download files
- Thread-safe operations
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentlink_py-0.1.0.tar.gz
(1.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 agentlink_py-0.1.0.tar.gz.
File metadata
- Download URL: agentlink_py-0.1.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06aed8921585109c14a982b912236c08f278b554c9441948a1a744913fc877e
|
|
| MD5 |
cd8f627e1d088667786fa4951c3aed2d
|
|
| BLAKE2b-256 |
b9b1d81fe29f486053521c36581c1d906af638b5a750e73de579d008800c71d6
|
File details
Details for the file agentlink_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentlink_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6587365e42fee13b2df04c6d71f94cbed765464479b2b97b057d29e4c36525c
|
|
| MD5 |
c4c7072e9b709a9d4997947a356dc7ef
|
|
| BLAKE2b-256 |
ed250b854afb028fa7d6b641a945a879806d3cb75cc1f4be51bc3d914a6f6bd0
|