No project description provided
Project description
Exec-cmds-defer-errors
Small Python script that executes given commands commands and defers errors.
The standalone script is called exec_cmds_defer_errors.py and can be found
here. The license is included in the file.
Here it is used to run three commands:
uv run --script exec_cmds_defer_errors.py \
'whoami | grep goatse' \
'echo "hello world"' \
'make love'
Note that in the example the script is executed with uv run, a subcommand of
uv, which is a package manager for Python. This is
because the script contains
inline script metadata
specifying required dependencies. The script also contains a shebang, so it can
be executed directly.
The output will look like this:
Shell completion
This program uses Click for the CLI. Click provides automatically generated shell completion for Bash, Fish, and Zsh. Check out the official documentation here.
Project status
The project is maintained by me, Tim, and I am interested in keeping it alive as I am actively using it.
I'm also using the project to test out various tools and workflows.
Versioning
The project follows Semantic Versioning.
Contributing
Contributions are welcome. Please refer to CONTRIBUTE.md.
Licensing
This work is licensed under the
ISC license. See
LICENSE for the license text.
The license is also included in the script
exec_cmds_defer_errors.py
itself.
Template
This project is based on the following Copier template: https://github.com/trallnag/copier-template-python-script.
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
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 exec_cmds_defer_errors-2.0.2.tar.gz.
File metadata
- Download URL: exec_cmds_defer_errors-2.0.2.tar.gz
- Upload date:
- Size: 66.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13aeb3234a7a435ca6e5778ebaffb47fc0e0660e9b1c788c78530e7c369d38a4
|
|
| MD5 |
6c3c42eae7ae696b2763ff5a46edcab8
|
|
| BLAKE2b-256 |
ef369355cf5998b2f328b8a03096a22df648d91adcb2360ebb8221381b32d91c
|
Provenance
The following attestation bundles were made for exec_cmds_defer_errors-2.0.2.tar.gz:
Publisher:
release.yaml on trallnag/exec-cmds-defer-errors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exec_cmds_defer_errors-2.0.2.tar.gz -
Subject digest:
13aeb3234a7a435ca6e5778ebaffb47fc0e0660e9b1c788c78530e7c369d38a4 - Sigstore transparency entry: 175745676
- Sigstore integration time:
-
Permalink:
trallnag/exec-cmds-defer-errors@77833f7ce165c362c43dd620748a3be36a6e9d82 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/trallnag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@77833f7ce165c362c43dd620748a3be36a6e9d82 -
Trigger Event:
push
-
Statement type:
File details
Details for the file exec_cmds_defer_errors-2.0.2-py3-none-any.whl.
File metadata
- Download URL: exec_cmds_defer_errors-2.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14a71ed27597344db1b3bf313bf73b2dd11d89fc18ef95f5ed982a5c88f7675
|
|
| MD5 |
64d8019965f4260f988a70e775b7a40a
|
|
| BLAKE2b-256 |
bbb41840941407d3be43f1d331896ba7e52ad91b1602fe65945e9459f734d96e
|
Provenance
The following attestation bundles were made for exec_cmds_defer_errors-2.0.2-py3-none-any.whl:
Publisher:
release.yaml on trallnag/exec-cmds-defer-errors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exec_cmds_defer_errors-2.0.2-py3-none-any.whl -
Subject digest:
d14a71ed27597344db1b3bf313bf73b2dd11d89fc18ef95f5ed982a5c88f7675 - Sigstore transparency entry: 175745677
- Sigstore integration time:
-
Permalink:
trallnag/exec-cmds-defer-errors@77833f7ce165c362c43dd620748a3be36a6e9d82 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/trallnag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@77833f7ce165c362c43dd620748a3be36a6e9d82 -
Trigger Event:
push
-
Statement type: