Skip to main content

A SCons-like build tool for executing Python command files

Project description

README

PyShellX is a lightweight Python-based command execution tool that replaces traditional shell scripts with Python files. It provides a clean, cross-platform way to execute shell commands with proper error handling, argument parsing, and workflow management.

Introduction

  1. PyCMD is designed to be simple to use, with a focus on ease of integration into existing projects.
  2. It allows you to write shell commands in Python, making your scripts more readable and maintainable.
  3. PyCMD provides built-in error handling, argument parsing, and workflow management, reducing the need for custom scripting.

Usage

pycmd -f Command.py

You Just Write a Python File, named Command.py or Command, and PyShellX Will Do the Rest! next , run pycmd or pycmd -f Command.

Command.py exmaple

import sys
import os

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
from pycmd.environ import Environment

env = Environment()
output = env.Execute("echo Testing without install")
print(output)

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

pyshellx-1.0.6.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

pyshellx-1.0.6-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file pyshellx-1.0.6.tar.gz.

File metadata

  • Download URL: pyshellx-1.0.6.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for pyshellx-1.0.6.tar.gz
Algorithm Hash digest
SHA256 1b7a159ddf079881866bf2e84d0ed641e6129b66233c79da6b61406357a004b5
MD5 585ef2958ead4d304bb57fdb4edcf290
BLAKE2b-256 f6169e9a1815eba429fb398e37157fc815825df63b543b95dbc2a831d1ceb690

See more details on using hashes here.

File details

Details for the file pyshellx-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyshellx-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for pyshellx-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2dd2d30c82445c5ffe32ceb49b336cd356d72dde82461f71fdca0b67e78a2e5b
MD5 8f9a802f8ce49baba200b51d8922927a
BLAKE2b-256 85cd74fbb78486ce44f5b76ca0bc61d600170a1be9d5f24b23c691ec546fd07a

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