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.6.tar.gz
(13.1 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.6.tar.gz.
File metadata
- Download URL: shelltastic-0.4.6.tar.gz
- Upload date:
- Size: 13.1 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 |
3650b90d7c7a2c0e14162f47f7747ce2ba504a6a9565e5393def99ded8c5b2ee
|
|
| MD5 |
4f5e45af3aa729e638e07a8f3b42ac01
|
|
| BLAKE2b-256 |
e1bbe4f0735a7bc980fbd083fcf9ad609da0ec6b57ef81ea37ebf8a2810fdebc
|
File details
Details for the file shelltastic-0.4.6-py3-none-any.whl.
File metadata
- Download URL: shelltastic-0.4.6-py3-none-any.whl
- Upload date:
- Size: 19.3 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 |
3c0761c8bc27b47880daf0135f5e12f0398459301b5e7c115fed0004a197f2f9
|
|
| MD5 |
c80ff254b66c99a48730f42a3879dbb6
|
|
| BLAKE2b-256 |
00716d5d9e5418689e38165ba5196a8308b8878be0f5ce3d0c009b5a493e2dac
|