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.2.0.tar.gz (3.5 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.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_script_exec-1.2.0.tar.gz
  • Upload date:
  • Size: 3.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f6c1b76b1d1b2a90cfa3c3d94318e636f9af3613c208ff41de5156fd5459077a
MD5 7ef356c227c74e2841194fe6f124d4b3
BLAKE2b-256 ba94dd265d99b30b5f0ccd1b06a53afa66ba9953258bc2b2d0af1e4756f02919

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_script_exec-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb439b6e7f0fb1b85f88706e30426444c25e7fbedb2aeb219736af28f13d036
MD5 5782f22f23b5c5b6a5c22a8c0be679de
BLAKE2b-256 d31d1815dc6ea6778eee8463a78142763788a720ea92ac532acf72b5298cc801

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