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
Release files for agentlink-py 0.1.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 | |
|---|---|---|---|
| agentlink_py-0.1.0.tar.gz | 1.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentlink_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.0 kB
Release files / agentlink_py-0.1.0.tar.gz
| Download URL | agentlink_py-0.1.0.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e06aed8921585109c14a982b912236c08f278b554c9441948a1a744913fc877e
|
|
BLAKE2b-256 checksum How to use checksums |
b9b1d81fe29f486053521c36581c1d906af638b5a750e73de579d008800c71d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / agentlink_py-0.1.0-py3-none-any.whl
| Download URL | agentlink_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6587365e42fee13b2df04c6d71f94cbed765464479b2b97b057d29e4c36525c
|
|
BLAKE2b-256 checksum How to use checksums |
ed250b854afb028fa7d6b641a945a879806d3cb75cc1f4be51bc3d914a6f6bd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|