Skip to main content

A cross-platform Python script runner.

Project description

py_script_exec

A Python utility to execute Python scripts with arguments across different operating systems.

Features

  • Run Python scripts programmatically.
  • Handles arguments seamlessly.
  • Compatible with both python and python3 without changes.

Installation

To use py_script_exec, install via pip:

pip install py_script_exec
from py_script_exec import py_run

# Run a Python script with arguments
exit_code, stdout, stderr = py_run("example.py", ["arg1", "arg2"])

print(f"Exit Code: {exit_code}")
print(f"Output: {stdout}")
print(f"Error: {stderr}")

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

py_script_exec-1.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

py_script_exec-1.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file py_script_exec-1.1.0.tar.gz.

File metadata

  • Download URL: py_script_exec-1.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for py_script_exec-1.1.0.tar.gz
Algorithm Hash digest
SHA256 499b3e9395d8fe6a84f5712fa70b8eec9d7574deb3eee5b9bb61a8f466ba2251
MD5 969270aec6a0d7cea83712dae3f2e9d6
BLAKE2b-256 a4195f9f7d3a74fd33ac9aa4db83ba0670c0af3f17b3a68028ad40e9fa1aebad

See more details on using hashes here.

File details

Details for the file py_script_exec-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_script_exec-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for py_script_exec-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab03dabe1a24ea849adcd65bf1b58c41be05237d5430734e4b7aa65a8a0584b
MD5 826ee2ee5ed0010784a647c49f2f1b04
BLAKE2b-256 f90a3a1f4adbc9441ff4bf2a10ce127d149a6e1791b8843de72155865089289f

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