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
pythonandpython3without 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c1b76b1d1b2a90cfa3c3d94318e636f9af3613c208ff41de5156fd5459077a
|
|
| MD5 |
7ef356c227c74e2841194fe6f124d4b3
|
|
| BLAKE2b-256 |
ba94dd265d99b30b5f0ccd1b06a53afa66ba9953258bc2b2d0af1e4756f02919
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb439b6e7f0fb1b85f88706e30426444c25e7fbedb2aeb219736af28f13d036
|
|
| MD5 |
5782f22f23b5c5b6a5c22a8c0be679de
|
|
| BLAKE2b-256 |
d31d1815dc6ea6778eee8463a78142763788a720ea92ac532acf72b5298cc801
|