Skip to main content

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)

Source distribution for agentlink-py 0.1.0
File Size Uploaded
agentlink_py-0.1.0.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentlink-py 0.1.0
File Interpreter ABI Platform
agentlink_py-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 kB

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page