Skip to main content

A Python package to distribute commands on remote hosts viaSSH and to execute them locally in parallel.

Project description

# DistLRE

A lightweight Python package to distribute commands on remote hosts via SSH and to execute them locally in parallel.

Supports running a local commands:

```
executor = DistLRE(local_threads=1)

task = Task(command='ls ~', meta='META', time_limit=10, memory_limit=10)
future = executor.submit(task)
executor.execute_tasks()
executor.wait()
print(future.result().output)
```

Or runs command on a remote host:

```
def test_remote(self):
password = getpass.getpass("Password to connect to [localhost]:")
executor = DistLRE(remote_hosts=[RemoteHost('localhost', port=31415, password=password)])

task = Task(command='ls ~', meta='META', time_limit=10, memory_limit=10)
other_task = Task(command='cd ~', meta='META', time_limit=10, memory_limit=10)
future = executor.submit(task)
other_future = executor.submit(other_task)
executor.execute_tasks()
executor.wait()
print(future.result().output)
```

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

distlre-0.0.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distributions

distlre-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

distlre-0.0.1-py2.py3-none-any.whl (2.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file distlre-0.0.1.tar.gz.

File metadata

  • Download URL: distlre-0.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for distlre-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82950acf74600f3c023c0c0f59eb84bc379ec8759e7bf9a3f0161a3726233401
MD5 a04912a3386c4f0a8dc1cc46e0505794
BLAKE2b-256 7b488baa85aa6697d80b55ee36b0f8d081f614c93d8c7e91579d25ba2fd36f2f

See more details on using hashes here.

Provenance

File details

Details for the file distlre-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for distlre-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a9c5587767cb329583e4283139341f2bc22d2218c4978a498a4705404bde03a
MD5 9e29a5b3a7927bbf498b926342c34efe
BLAKE2b-256 491070a62741cb4298e2cbee85db3337eace47eac1a25cce7d4eaa0493e92373

See more details on using hashes here.

Provenance

File details

Details for the file distlre-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for distlre-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 10e279534539fc2a542dd69d79136249bc993d0c928cd1c2e5a2ada6a97aaeee
MD5 d8bdea275c82d8526709c966d2a63631
BLAKE2b-256 e6f9285f5febcd68ffd5f444cf255b959ccbc9044c5551c8b462fd9fe87bb49c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page