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.8.2.tar.gz
(15.8 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.8.2.tar.gz.
File metadata
- Download URL: shelltastic-0.8.2.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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 |
8543b99698701687340f11781de5c9ce4f4add9249cb726b3a4de0a6cb3575c0
|
|
| MD5 |
99fbe5f46d96e4080d5cf95a5b26e3dd
|
|
| BLAKE2b-256 |
6d40a8fe58fd00f45ffa014e9655418c9869a55424b6cfbac3b6357cb05c129c
|
File details
Details for the file shelltastic-0.8.2-py3-none-any.whl.
File metadata
- Download URL: shelltastic-0.8.2-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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 |
f5008df10010c035dd3ed004543512d8f1335f55c8d1f8a5a54a0ae23f6b6d5c
|
|
| MD5 |
23773a5c7aa26dad7746b373f3160e2d
|
|
| BLAKE2b-256 |
7f40ef8bea6f1aff2fa2abcac77afa551750caf886c796cec654986b6bce75e4
|