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.1.0.tar.gz
(3.3 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499b3e9395d8fe6a84f5712fa70b8eec9d7574deb3eee5b9bb61a8f466ba2251
|
|
| MD5 |
969270aec6a0d7cea83712dae3f2e9d6
|
|
| BLAKE2b-256 |
a4195f9f7d3a74fd33ac9aa4db83ba0670c0af3f17b3a68028ad40e9fa1aebad
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab03dabe1a24ea849adcd65bf1b58c41be05237d5430734e4b7aa65a8a0584b
|
|
| MD5 |
826ee2ee5ed0010784a647c49f2f1b04
|
|
| BLAKE2b-256 |
f90a3a1f4adbc9441ff4bf2a10ce127d149a6e1791b8843de72155865089289f
|