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.7.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.7-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyshellx-1.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 7ece81147810d4fac648b4fbb0777431acbc04d42a7c6f309cc9bce126a61089
MD5 f2f3a74d782c18ccd5cfd2c4d8f855b9
BLAKE2b-256 e59b07e6c79462147bcede0e596a96d2191c4ebd1ac37e93f86b098527a4b227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyshellx-1.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fbbc74979a500b83f1926b881a1db0d273a9317a1a30d8ff6a4ec163cc597111
MD5 dcfd8cef828c6cfd67932e41381bac91
BLAKE2b-256 8802b34ccb29cf5fc291f43804a1779c10c126ef2f77a7d23de22db3dbe936fd

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