shelltastic
Install
pip install shelltastic
Basic Usage
Run shell commands on a local host:
from shelltastic import shell
# Straight commands
shell.run("echo Hello World!")
# Or safely escape input
text = "Hello World!"
shell.run(["echo", text])
It's easy to run on a remote host using SSH with the same interface:
from shelltastic import shell
# Run command on host with default username and port
shell.host("example.com").run("echo Hello World!")
# Specifying Username and Port
shell.host("example.com", username="root", port=22).run("echo Hello World!")
To copy files to/from hosts use the scp frontend:
from shelltastic import scp
scp.host("example.com").send(...)
scp.host("example.com").receive(...)
To interact with git, there's a git frontend:
from shelltastic import git
git.clone(...)
Release files for shelltastic 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shelltastic-0.9.1.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shelltastic-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.3 kB
Release files / shelltastic-0.9.1.tar.gz
| Download URL | shelltastic-0.9.1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed24f057f67468516d986c7aab051b35ea1f2cb70069f56d2c88a80016e25ee6
|
|
BLAKE2b-256 checksum How to use checksums |
9e42cf582974671934dea4c516e1c622b1c3de4b06279884ddf4a96fe4a323fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / shelltastic-0.9.1-py3-none-any.whl
| Download URL | shelltastic-0.9.1-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a07cd1db52204989f3303043d9ccc04c784a56de8a0cf3f9cd0887e13e13b746
|
|
BLAKE2b-256 checksum How to use checksums |
35e495a6e92f9c52db62b78e2d846b29929e99336b578a0a799f92c2ab1c861e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|