A fantastic shell command runner for python
Project description
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(...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shelltastic-0.4.1.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shelltastic-0.4.1.tar.gz.
File metadata
- Download URL: shelltastic-0.4.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b872d73a212a89c8aa369b2c9e2276ec232757ee88c17fb656e4c5ac4ebe43c
|
|
| MD5 |
e9e945812e99f258c72beb9e09022994
|
|
| BLAKE2b-256 |
a02a8c5d085c91cc0dbcc629855c24f7f709e1f65fb49df964f8009064cdce4e
|
File details
Details for the file shelltastic-0.4.1-py3-none-any.whl.
File metadata
- Download URL: shelltastic-0.4.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93fe5f5c3c568e15dd022bdcd9103948f9accd0ee885427947e3865b0c6c1f64
|
|
| MD5 |
94cf47cdefb5fba085f229ab01e4f57e
|
|
| BLAKE2b-256 |
7042b9454f3f9a0f07a4cb4e16099a168300c389ebc1a53bf9a7bab552550f75
|