Skip to main content

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


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.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shelltastic-0.8.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file shelltastic-0.8.0.tar.gz.

File metadata

  • Download URL: shelltastic-0.8.0.tar.gz
  • Upload date:
  • Size: 15.7 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

Hashes for shelltastic-0.8.0.tar.gz
Algorithm Hash digest
SHA256 862339173f27b2a1663e01a4c4ab0153437832b5ffcc933a955d083016b2ba63
MD5 4e2b7e302ec25642e9df52c72216ce09
BLAKE2b-256 ba3af49db8d1c533bda9a942047c5df53a314aad1ccbae0fbe7afbe43f08b2a7

See more details on using hashes here.

File details

Details for the file shelltastic-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: shelltastic-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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

Hashes for shelltastic-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b94c6197d65edf5b976f9c9b6658520c865a8aa31ee64d7cffe77502a1b02e5d
MD5 9b061e20e7c8dbf5b4cfb0e7937f177c
BLAKE2b-256 627782df629a076f258d77e9c0bdcae8343ebea5bea7ef08540f71070d0ac34c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page