Skip to main content

Command Line System Function Runner

This package provides a command-line interface for running system commands with parsed options and arguments. It dynamically generates a function interface for any system command, allowing for easy execution and option handling.

Features

  • Dynamic parsing of command options from --help output
  • Support for short and long option formats
  • Piping input from standard input or command line argument
  • Ability to list available options for a command

Installation

To install the package, clone the repository and install the dependencies:

git clone <repository-url>
cd <repository-directory>
pip install -r requirements.txt

Usage

Run the script with the following syntax:

python script_name.py <command> [ARGS]... [OPTIONS]

Arguments

  • command: The system command to run
  • ARGS: Additional arguments for the command (optional)

Options

  • -o, --option TEXT: Specify command options (can be used multiple times)
  • -p, --pipe TEXT: Provide input to pipe to the command
  • -P, --print-args: Print available options for the command
  • --help: Show help message and exit

Examples

  1. List available options for a command:

    python script_name.py ls --print-args
    
  2. Run a command with options:

    python script_name.py ls -o l -o a /home
    
  3. Pipe input to a command:

    python script_name.py grep -o i -p "search text" search_pattern
    
  4. Use standard input:

    echo "Hello, World!" | python script_name.py grep World
    

Note

This tool is designed for educational and development purposes. Use caution when running system commands, especially with elevated privileges.

Metadata

Release files for mausify 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mausify 0.0.2
File Size Uploaded
mausify-0.0.2.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mausify 0.0.2
File Interpreter ABI Platform
mausify-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / mausify-0.0.2.tar.gz

Download URL mausify-0.0.2.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
39052193606ca18d067dd45ba0fdfa1da77c38ce7e96df650d33d059791c5e3b
BLAKE2b-256 checksum
How to use checksums
fcffc6f141b2a7fd839a460f5dc7caf687e7f7bb3d6368d22b5dab106e2181b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.12 Linux/6.8.0-45-generic

Release files / mausify-0.0.2-py3-none-any.whl

Download URL mausify-0.0.2-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44497d88475bb354407acb2ce9854a796a48ec17460149ef409d22bdcec76526
BLAKE2b-256 checksum
How to use checksums
a887636039d4247f4b62e5eb55ee85754f3650e96024231bcde2e87e90c582c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.12 Linux/6.8.0-45-generic

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page