Skip to content

AkariSpecification/AkariLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AkariLib

AkariLib - AkariSpecification's Python Lib for HPC

Installation

pip install git+https://github.com/AkariSpecification/AkariLibrary

Usage

from akarilib import akarilib

# SSH Connection
connection = akarilib.rsaConnection("hostname","username", "id_rsa")

# SSH Command Execution
akarilib.run(connection, "ls -l")

# SSH File Transfer
akarilib.put(connection, "local_file", "remote_file")

# SSH File Download
akarilib.get(connection, "remote_file", "local_file")

# SSH Files(Directory) Transfer
akarilib.putFiles(connection, "local_dir", "remote_dir")

# SSH Files(Directory) Download
akarilib.getFiles(connection, "remote_dir", "local_dir")

# Example
# Execute GCC Compile in Remote Host
akarilib.put(connection, "/home/localuser/hello.c", "/home/remoteuser/hello.c")
akarilib.run(connection, "cd /home/remoteuser/")
akarilib.run(connection, "gcc -o hello hello.c")
# Run Remote Host's Executable File
result = akarilib.run(connection, "./hello")

# Close SSH Connection
akarilib.disconnect(connection)

License

MIT License (c) 2023 AkariSpecification

About

AkariLib - AkariSpecification's Python Lib for HPC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published