Skip to main content

No project description provided

Project description

status release ci release

exec_cmds_defer_errors.py

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:

screenshot.png

Project status

The project is maintained by me, trallnag, 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 src/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

exec_cmds_defer_errors-2.0.1.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

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

exec_cmds_defer_errors-2.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file exec_cmds_defer_errors-2.0.1.tar.gz.

File metadata

  • Download URL: exec_cmds_defer_errors-2.0.1.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for exec_cmds_defer_errors-2.0.1.tar.gz
Algorithm Hash digest
SHA256 d2ccff44731e2f79c50640c33536fe5a6dc91f394d469924231b8e9a2c705cb2
MD5 0c30b9fc5d9edf97aa85696950aed232
BLAKE2b-256 ff401ac73d54164180ded86a6aea0aa99214793fad651d7ea99ab0e3ec794bc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for exec_cmds_defer_errors-2.0.1.tar.gz:

Publisher: release.yaml on trallnag/exec-cmds-defer-errors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file exec_cmds_defer_errors-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for exec_cmds_defer_errors-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1304c803e355e980ff3840a2db65faee5f339e740fefbb3ca5bb63eb34cacc
MD5 5aba8ef1580dc101f82b47205e0608a1
BLAKE2b-256 1dbb7a3db3de4697e0f23b91ccc8d670958b76a1098ae9fca0eb11619955dd10

See more details on using hashes here.

Provenance

The following attestation bundles were made for exec_cmds_defer_errors-2.0.1-py3-none-any.whl:

Publisher: release.yaml on trallnag/exec-cmds-defer-errors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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